|
| 1 | +# Copyright (C) 2009 The Android Open Source Project |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | + |
| 16 | +LOCAL_PATH := $(call my-dir) |
| 17 | +TARGET_ARCH_ABI := $(APP_ABI) |
| 18 | + |
| 19 | +rwildcard=$(wildcard $1$2) $(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2)) |
| 20 | + |
| 21 | +# Build the modloader shared library |
| 22 | +include $(CLEAR_VARS) |
| 23 | +# Creating prebuilt for dependency: modloader - version: 1.0.4 |
| 24 | +include $(CLEAR_VARS) |
| 25 | +LOCAL_MODULE := modloader |
| 26 | +LOCAL_EXPORT_C_INCLUDES := extern/modloader |
| 27 | +LOCAL_SRC_FILES := extern/libmodloader.so |
| 28 | +include $(PREBUILT_SHARED_LIBRARY) |
| 29 | +# Creating prebuilt for dependency: beatsaber-hook - version: 0.8.4 |
| 30 | +include $(CLEAR_VARS) |
| 31 | +LOCAL_MODULE := beatsaber-hook_0_8_4 |
| 32 | +LOCAL_EXPORT_C_INCLUDES := extern/beatsaber-hook |
| 33 | +LOCAL_SRC_FILES := extern/libbeatsaber-hook_0_8_4.so |
| 34 | +LOCAL_CPP_FEATURES += exceptions |
| 35 | +include $(PREBUILT_SHARED_LIBRARY) |
| 36 | +# Creating prebuilt for dependency: codegen - version: 0.4.0 |
| 37 | +include $(CLEAR_VARS) |
| 38 | +LOCAL_MODULE := codegen_0_4_0 |
| 39 | +LOCAL_EXPORT_C_INCLUDES := extern/codegen |
| 40 | +LOCAL_SRC_FILES := extern/libcodegen_0_4_0.so |
| 41 | +include $(PREBUILT_SHARED_LIBRARY) |
| 42 | +# Creating prebuilt for dependency: questui - version: 0.2.8 |
| 43 | +include $(CLEAR_VARS) |
| 44 | +LOCAL_MODULE := questui |
| 45 | +LOCAL_EXPORT_C_INCLUDES := extern/questui |
| 46 | +LOCAL_SRC_FILES := extern/libquestui.so |
| 47 | +include $(PREBUILT_SHARED_LIBRARY) |
| 48 | +# Creating prebuilt for dependency: custom-types - version: 0.2.14 |
| 49 | +include $(CLEAR_VARS) |
| 50 | +LOCAL_MODULE := custom-types |
| 51 | +LOCAL_EXPORT_C_INCLUDES := extern/custom-types |
| 52 | +LOCAL_SRC_FILES := extern/libcustom-types.so |
| 53 | +include $(PREBUILT_SHARED_LIBRARY) |
| 54 | + |
| 55 | +include $(CLEAR_VARS) |
| 56 | +LOCAL_MODULE := clockmod |
| 57 | +LOCAL_SRC_FILES += $(call rwildcard,src/,*.cpp) |
| 58 | +LOCAL_SRC_FILES += $(call rwildcard,extern/beatsaber-hook/src/inline-hook,*.cpp) |
| 59 | +LOCAL_SRC_FILES += $(call rwildcard,extern/beatsaber-hook/src/inline-hook,*.c) |
| 60 | +LOCAL_SHARED_LIBRARIES += modloader |
| 61 | +LOCAL_SHARED_LIBRARIES += beatsaber-hook_0_8_4 |
| 62 | +LOCAL_SHARED_LIBRARIES += codegen_0_4_0 |
| 63 | +LOCAL_SHARED_LIBRARIES += questui |
| 64 | +LOCAL_SHARED_LIBRARIES += custom-types |
| 65 | +LOCAL_LDLIBS += -llog |
| 66 | +LOCAL_CFLAGS += -I'extern/libil2cpp/il2cpp/libil2cpp' -DID='"clockmod"' -DVERSION='"0.1.0"' -I'./shared' -I'./extern' -isystem'extern/codegen/include' |
| 67 | +LOCAL_CPPFLAGS += -std=c++2a |
| 68 | +LOCAL_C_INCLUDES += ./include ./src |
| 69 | +include $(BUILD_SHARED_LIBRARY) |
0 commit comments