diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2014-03-04 14:50:52 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2014-03-06 17:03:59 +0000 |
commit | 11fc63ec42d88fbff6fef24511467c72ee4ee2f8 (patch) | |
tree | 232a193db667192e8aec09e0495dfb9293250291 /lib/Script/Android.mk | |
parent | fe41fd537b9ffa9fef4b975f6ad2333e1452122b (diff) | |
download | mclinker-11fc63ec42d88fbff6fef24511467c72ee4ee2f8.tar.gz |
Reapply: Makefile changes to get mclinker to build again.
Turns out, bison is pretty inflexible when a %includes file.h is in the
.yy file: it will always generate the code in the current directory. Since
the current directory in an Android build is not out/ we cannot assume we
have write access to that directory.
Therefore, the only option I could find was to change the ScriptParser.yy
file. Not ideal, since this is the only patch on upstream.
Change-Id: I9ee7f56d4f6900e1b566f4a36b31dddc8cb0848e
Diffstat (limited to 'lib/Script/Android.mk')
-rw-r--r-- | lib/Script/Android.mk | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/lib/Script/Android.mk b/lib/Script/Android.mk new file mode 100644 index 0000000..e24fa35 --- /dev/null +++ b/lib/Script/Android.mk @@ -0,0 +1,59 @@ +LOCAL_PATH:= $(call my-dir) + +mcld_script_SRC_FILES := \ + AssertCmd.cpp \ + Assignment.cpp \ + BinaryOp.cpp \ + EntryCmd.cpp \ + FileToken.cpp \ + GroupCmd.cpp \ + InputSectDesc.cpp \ + InputToken.cpp \ + NameSpec.cpp \ + NullaryOp.cpp \ + Operand.cpp \ + Operator.cpp \ + OutputArchCmd.cpp \ + OutputCmd.cpp \ + OutputFormatCmd.cpp \ + OutputSectDesc.cpp \ + RpnEvaluator.cpp \ + RpnExpr.cpp \ + ScriptCommand.cpp \ + ScriptFile.cpp \ + ScriptReader.cpp \ + SearchDirCmd.cpp \ + SectionsCmd.cpp \ + ScriptScanner.ll \ + ScriptParser.yy \ + StrToken.cpp \ + StringList.cpp \ + TernaryOp.cpp \ + UnaryOp.cpp \ + WildcardPattern.cpp + +# For the host +# ===================================================== +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := $(mcld_script_SRC_FILES) +LOCAL_MODULE:= libmcldScript +LOCAL_C_INCLUDES := $(MCLD_ROOT_PATH)/include/mcld/Script + +LOCAL_MODULE_TAGS := optional + +include $(MCLD_HOST_BUILD_MK) +include $(BUILD_HOST_STATIC_LIBRARY) + +# For the device +# ===================================================== +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := $(mcld_script_SRC_FILES) +LOCAL_MODULE:= libmcldScript +LOCAL_C_INCLUDES := $(MCLD_ROOT_PATH)/include/mcld/Script + +LOCAL_MODULE_TAGS := optional + +include $(MCLD_DEVICE_BUILD_MK) +include $(BUILD_STATIC_LIBRARY) |