|
| 1 | +## |
| 2 | +## Copyright (C) 2012 The Android Open Source Project |
| 3 | +## |
| 4 | +## Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +## you may not use this file except in compliance with the License. |
| 6 | +## You may obtain a copy of the License at |
| 7 | +## |
| 8 | +## http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +## |
| 10 | +## Unless required by applicable law or agreed to in writing, software |
| 11 | +## distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +## See the License for the specific language governing permissions and |
| 14 | +## limitations under the License. |
| 15 | +## |
| 16 | + |
| 17 | +LOCAL_PATH:= $(call my-dir) |
| 18 | + |
| 19 | +include $(CLEAR_VARS) |
| 20 | + |
| 21 | +DERIVED_SRC = ../_cache/mac/Debug/stdscript.build/DerivedSources |
| 22 | + |
| 23 | +SCRIPT_SRC_FILES = \ |
| 24 | + src/script-builder.cpp \ |
| 25 | + src/script-instance.cpp \ |
| 26 | + src/script-module.cpp \ |
| 27 | + src/script-object.cpp \ |
| 28 | + src/script-package.cpp \ |
| 29 | + src/module-arithmetic.cpp \ |
| 30 | + src/module-array.cpp \ |
| 31 | + src/module-binary.cpp \ |
| 32 | + src/module-bitwise.cpp \ |
| 33 | + src/module-byte.cpp \ |
| 34 | + src/module-char.cpp \ |
| 35 | + src/module-encoding.cpp \ |
| 36 | + src/module-file.cpp \ |
| 37 | + src/module-list.cpp \ |
| 38 | + src/module-logic.cpp \ |
| 39 | + src/module-map.cpp \ |
| 40 | + src/module-math_foundation.cpp \ |
| 41 | + src/module-math.cpp \ |
| 42 | + src/module-sort.cpp \ |
| 43 | + src/module-string.cpp \ |
| 44 | + src/module-type_convert.cpp \ |
| 45 | + src/module-type.cpp \ |
| 46 | + src/module-url.cpp \ |
| 47 | + $(DERIVED_SRC)/arithmetic.mlc.c \ |
| 48 | + $(DERIVED_SRC)/array.mlc.c \ |
| 49 | + $(DERIVED_SRC)/binary.mlc.c \ |
| 50 | + $(DERIVED_SRC)/bitwise.mlc.c \ |
| 51 | + $(DERIVED_SRC)/byte.mlc.c \ |
| 52 | + $(DERIVED_SRC)/char.mlc.c \ |
| 53 | + $(DERIVED_SRC)/item.mlc.c \ |
| 54 | + $(DERIVED_SRC)/line.mlc.c \ |
| 55 | + $(DERIVED_SRC)/list.mlc.c \ |
| 56 | + $(DERIVED_SRC)/logic.mlc.c \ |
| 57 | + $(DERIVED_SRC)/math-foundation.mlc.c \ |
| 58 | + $(DERIVED_SRC)/math.mlc.c \ |
| 59 | + $(DERIVED_SRC)/segmentchunk.mlc.c \ |
| 60 | + $(DERIVED_SRC)/sort.mlc.c \ |
| 61 | + $(DERIVED_SRC)/string.mlc.c \ |
| 62 | + $(DERIVED_SRC)/type-convert.mlc.c \ |
| 63 | + $(DERIVED_SRC)/type.mlc.c |
| 64 | + |
| 65 | +############################################################# |
| 66 | +# build the ffi static library |
| 67 | +# |
| 68 | + |
| 69 | +TARGET_PLATFORM=android-8 |
| 70 | + |
| 71 | +LOCAL_MODULE:= libscript |
| 72 | + |
| 73 | +LOCAL_ARM_MODE := arm |
| 74 | + |
| 75 | +LOCAL_SRC_FILES:= \ |
| 76 | + $(SCRIPT_SRC_FILES) |
| 77 | + |
| 78 | +LOCAL_CPP_EXTENSION := .cpp |
| 79 | + |
| 80 | +LOCAL_C_INCLUDES := \ |
| 81 | + $(LOCAL_PATH)/include \ |
| 82 | + $(LOCAL_PATH)/src \ |
| 83 | + $(LOCAL_PATH)/../thirdparty/libffi/android/include \ |
| 84 | + $(LOCAL_PATH)/../libfoundation/include \ |
| 85 | + $(LOCAL_PATH)/../libgraphics/include \ |
| 86 | + $(LOCAL_PATH)/../engine/src |
| 87 | + |
| 88 | +LOCAL_CFLAGS += -DHB_NO_MT -DHAVE_OT -DHAVE_UCDN -DHAVE_FREETYPE |
| 89 | +LOCAL_EXPORT_LDLIBS := -L$(LOCAL_PATH)/../prebuilt/lib/android/armv6 -licui18n -licuio -licule -liculx -licuuc -licudata |
| 90 | + |
| 91 | +include $(BUILD_STATIC_LIBRARY) |
| 92 | + |
0 commit comments