Advertisement
dominus

Untitled

Apr 27th, 2022
1,280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.46 KB | None | 0 0
  1. diff --git a/android/Makefile.am b/android/Makefile.am
  2. index f8e6bcd4..7495ed4e 100644
  3. --- a/android/Makefile.am
  4. +++ b/android/Makefile.am
  5. @@ -8,29 +8,23 @@ android_DATA=$(ANDROID_APK)
  6.  # All the DATA files that getinstalled by a normal build.
  7.  # TODO: Would be ideal to infer this list rather than hard-coding it here.  
  8.  DATA_FILES = \
  9. -   bg_paperdol.vga \
  10.     exult.flx \
  11.     exult_si.flx \
  12. -   u7bgintrinsics.data \
  13. -   u7opcodes.data \
  14. -   u7siintrinsics.data \
  15. -   bg_mr_faces.vga \
  16.     exult_bg.flx \
  17. -   exultmsg.txt \
  18. -   midisfx.flx \
  19. -   u7misc.data \
  20. -   u7sibetaintrinsics.data
  21. +   midisfx.flx
  22.  
  23.  # We'll place the data files in the apk's assets folder so that they get bundled into the package.
  24.  APK_ASSETS_DIR=$(abs_builddir)/app/src/main/assets/data
  25. -APK_ASSETS = $(patsubst %,$(APK_ASSETS_DIR)/%,$(DATA_FILES))
  26. +APK_ASSETS = $(DATA_FILES:%=$(APK_ASSETS_DIR)/%)
  27.  
  28.  # Gradle doesn't appear to have a simple way to do out-of-tree builds, so instead we'll symbolic link the source tree
  29.  # into the build directory and run the build from the links.  Note that the final source tree includes elements from
  30.  # multiple locations and we end up installing an assets folder as part of the build in app/src/main/assets which we don't
  31.  # want to end up in the source tree, so we can't simply have one link to the top-level source tree.
  32.  APK_SOURCE_TREE = \
  33. -   $(patsubst $(srcdir)/%,$(abs_builddir)/%,$(wildcard $(srcdir)/*gradle*)) \
  34. +   $(abs_builddir)/build.gradle \
  35. +   $(abs_builddir)/gradle.properties \
  36. +   $(abs_builddir)/settings.gradle \
  37.     $(abs_builddir)/app/src/main/AndroidManifest.xml \
  38.     $(abs_builddir)/app/src/main/cpp \
  39.     $(abs_builddir)/app/src/main/java/info/exult \
  40. @@ -71,22 +65,10 @@ $(abs_builddir)/app/src/main/java/org/libsdl: $(SDL_SOURCE_DIR)
  41.     @$(MKDIR_P) $(dir $@)
  42.     $(LN_S) $(SDL_SOURCE_DIR)/android-project/app/src/main/java/org/libsdl $@
  43.  
  44. -$(APK_ASSETS_DIR)/%: $(abs_top_srcdir)/data/bg/%
  45. -   @$(MKDIR_P) $(dir $@)
  46. -   $(INSTALL) $< $@
  47. -
  48.  $(APK_ASSETS_DIR)/%: $(abs_top_srcdir)/data/%
  49.     @$(MKDIR_P) $(dir $@)
  50.     $(INSTALL) $< $@
  51.  
  52. -$(APK_ASSETS_DIR)/%: $(abs_top_srcdir)/usecode/ucxt/data/%
  53. -   @$(MKDIR_P) $(dir $@)
  54. -   $(INSTALL) $< $@
  55. -
  56. -$(APK_ASSETS_DIR)/%: $(abs_top_builddir)/usecode/ucxt/data/%
  57. -   @$(MKDIR_P) $(dir $@)
  58. -   $(INSTALL) $< $@
  59. -
  60.  # In addition to building the SDL C library for NDK, we also need Java
  61.  # sources compiled into the app.  Rather than let the NDK CMake pull
  62.  # in SDL like the other dependencies, pre-load the codebase here at
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement