summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAleksandar Bozhinovski <aleksandar.bozhinovski@seavus.com>2012-04-12 14:34:03 +0200
committerViktor Mladenovski <viktor.mladenovski@seavus.com>2012-05-25 14:45:32 +0200
commitd9f6ac4b324136f8d94f240f8cdf4007751fb4c1 (patch)
tree95ebebd88bb2a14e51e4c30ee6cd0759386e280b /Makefile
parent91209946caf8680942ea79166bb209f57ca3e69c (diff)
Auto-generate LcdVersion.cpp and lcm_version.c
LCD/LCM compatibility check was broken by introducing of mingw cross compiler. The functionality is brought back by auto-generating LcdVersion.cpp and lcm_version.c ST-Ericsson ID: 427380 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10204 Change-Id: I6c18973d2a38484bdf3003b0edbf3f7b6dd8c34f Depends-On: I709f594c76bf1d0d0bf88ee205ef94bc772eed10 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/55202 Reviewed-by: QABUILD Tested-by: Blaze MILADINOV <blaze.miladinov@seavus.com> Reviewed-by: Viktor MLADENOVSKI <viktor.mladenovski@stericsson.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9b8c826..7844165 100644
--- a/Makefile
+++ b/Makefile
@@ -45,7 +45,6 @@ LIBSRC := \
source/LcmInterface.cpp\
source/LCDriverThread.cpp\
source/LCDriverMethods.cpp\
- source/LcdVersion.cpp\
source/LCDriverEntry.cpp\
source/LCDriver.cpp\
source/LCM/Buffers.cpp\
@@ -57,6 +56,7 @@ LIBSRC := \
source/security_algorithms/sha/sha2.cpp\
$(AUTO_DIR_LIB)/commands_marshal.cpp\
$(AUTO_DIR_LIB)/a2_commands_marshal.cpp\
+ $(AUTO_DIR_LIB)/LcdVersion.cpp\
$(AUTO_DIR_LIB)/error_codes_desc.cpp
ifeq ($(BUILD_WIN),)
LIBSRC += \
@@ -88,6 +88,7 @@ AUTOGEN_FILES := $(AUTO_DIR_LIB)/command_ids.h\
$(AUTO_DIR_LIB)/a2_commands.h\
$(AUTO_DIR_LIB)/a2_commands_impl.h\
$(AUTO_DIR_LIB)/a2_commands_marshal.cpp\
+ $(AUTO_DIR_LIB)/LcdVersion.cpp\
$(AUTO_DIR_LIB)/error_codes_desc.cpp
@@ -316,6 +317,9 @@ $(AUTO_DIR_LIB)/error_codes_desc.cpp: $(LCD_CONFIG)lcdriver_error_codes.xml $(LC
@echo "Generating autogen $(AUTO_DIR_LIB)/error_codes_desc.cpp..."
@java -classpath $(XALAN_PATH)xalan.jar org.apache.xalan.xslt.Process -in $(LCD_CONFIG)lcdriver_error_codes.xml -xsl $(LCD_CONFIG)error_codes_desc_cpp.xsl -out $@ -PARAM errorCodesLcmXml $(LCM_ERR_DESC_PATH)
+$(AUTO_DIR_LIB)/LcdVersion.cpp: setup_folders
+ bash $(LCD_DIR)source/gen_version_files.sh --lcd $(abspath $(AUTO_DIR_LIB)) $(abspath $(LCD_DIR))
+
#setting up needed folders
$(BUILDFOLDER): | configfile
@mkdir -p $@ 2> /dev/null