Solution for Windows Companion compile problem (lua_exports)
This commit is contained in:
+7
-1
@@ -1327,9 +1327,15 @@ bitmaps/sticks.lbm: bitmaps/sticks_4x1.xbm bitmaps/splash_9x.xbm bitmaps/splash_
|
|||||||
$(IMG2LBM) bitmaps/about_9x.png bitmaps/about_9x.lbm img
|
$(IMG2LBM) bitmaps/about_9x.png bitmaps/about_9x.lbm img
|
||||||
$(IMG2LBM) bitmaps/asterisk_4bits.png bitmaps/asterisk_4bits.lbm bmp
|
$(IMG2LBM) bitmaps/asterisk_4bits.png bitmaps/asterisk_4bits.lbm bmp
|
||||||
|
|
||||||
|
ifeq ($(OS),Windows_NT)
|
||||||
|
PARSER = avr-cpp
|
||||||
|
else
|
||||||
|
PARSER = gcc -E -x c++
|
||||||
|
endif
|
||||||
|
|
||||||
lua_exports.cpp: myeeprom.h ../util/luaexport.py
|
lua_exports.cpp: myeeprom.h ../util/luaexport.py
|
||||||
@echo "Generating a list of Lua exported constants in lua_exports.txt"
|
@echo "Generating a list of Lua exported constants in lua_exports.txt"
|
||||||
@gcc -E -x c++ -DPCBTARANIS -DCPUARM -DLUA -DEXPORT myeeprom.h | grep LEXP > lua_exports.txt
|
@$(PARSER) -DPCBTARANIS -DCPUARM -DLUA -DEXPORT myeeprom.h | grep LEXP > lua_exports.txt
|
||||||
@echo "Parsing and generating C Lua exports in lua_exports.cpp"
|
@echo "Parsing and generating C Lua exports in lua_exports.cpp"
|
||||||
@python ../util/luaexport.py $(VERSION) lua_exports.txt lua_exports.cpp lua_fields.txt
|
@python ../util/luaexport.py $(VERSION) lua_exports.txt lua_exports.cpp lua_fields.txt
|
||||||
@rm lua_exports.txt
|
@rm lua_exports.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user