Skip to content
This repository was archived by the owner on Dec 1, 2020. It is now read-only.

Commit 047d305

Browse files
PATCH: Compile options for Android
1 parent 4d819bb commit 047d305

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Android.mk

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
# This Source Code Form is subject to the terms of the Mozilla Public
2-
# License, v. 2.0. If a copy of the MPL was not distributed with this
3-
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
1+
LOCAL_PATH := $(call my-dir)
42

5-
# empty file to block B2G/Gonk from trying to build anything inside mozilla-central
3+
include $(CLEAR_VARS)
4+
LOCAL_MODULE := spidermonkey_static
5+
LOCAL_MODULE_FILENAME := js_static
6+
LOCAL_SRC_FILES := ./lib/$(TARGET_ARCH_ABI)/libjs_static.a
7+
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
8+
LOCAL_CPPFLAGS := -D__STDC_LIMIT_MACROS=1
9+
LOCAL_EXPORT_CPPFLAGS := -D__STDC_LIMIT_MACROS=1
10+
include $(PREBUILT_STATIC_LIBRARY)

0 commit comments

Comments
 (0)