Fix linux and windows builds
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
e97dcebbdf
commit
c49b4b9164
2 changed files with 6 additions and 3 deletions
|
@ -5,7 +5,6 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
DEP_PATH = $(abspath ../src/Rack/dep)
|
DEP_PATH = $(abspath ../src/Rack/dep)
|
||||||
OBJCOPY ?= objcopy
|
|
||||||
|
|
||||||
# --------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
# Import base definitions
|
# Import base definitions
|
||||||
|
@ -196,8 +195,8 @@ BASE_FLAGS += -pthread
|
||||||
|
|
||||||
ifeq ($(WINDOWS),true)
|
ifeq ($(WINDOWS),true)
|
||||||
BASE_FLAGS += -D_USE_MATH_DEFINES
|
BASE_FLAGS += -D_USE_MATH_DEFINES
|
||||||
BASE_FLAGS += -Imingw-compat
|
BASE_FLAGS += -I../src/mingw-compat
|
||||||
BASE_FLAGS += -Imingw-std-threads
|
BASE_FLAGS += -I../src/mingw-std-threads
|
||||||
BASE_FLAGS += -municode
|
BASE_FLAGS += -municode
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,10 @@ def res2c(filename):
|
||||||
|
|
||||||
print("const unsigned int %s_len = %d;\n" % (resname, fhandle.tell()))
|
print("const unsigned int %s_len = %d;\n" % (resname, fhandle.tell()))
|
||||||
|
|
||||||
|
if sys.platform != "darwin":
|
||||||
|
print("const unsigned char* _binary_%s_start = %s;\n" % (resname, resname))
|
||||||
|
print("const unsigned char* _binary_%s_end = %s + %d;\n" % (resname, resname, fhandle.tell()))
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue