From c74e0824089486ad7151ff953aaa01885a3e40f6 Mon Sep 17 00:00:00 2001 From: Elias Bachaalany Date: Thu, 5 Dec 2019 14:16:26 -0800 Subject: [PATCH] Fixed build.py to work on MS Windows - added .gitignore to ignore the obj folder and compiled Python scripts --- .gitignore | 2 ++ build.py | 4 ++-- makefile | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..79339b7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +obj/ +*.pyc \ No newline at end of file diff --git a/build.py b/build.py index 706a21c..333cddf 100644 --- a/build.py +++ b/build.py @@ -67,7 +67,7 @@ def main(): "OUT_OF_TREE_BUILD" : "1" } if args.swig_home: - env["SWIG_HOME"] = args.swig_home + env["SWIG_HOME"] = args.swig_home.replace('\\', '/') if args.with_hexrays: env["HAS_HEXRAYS"] = "1" if args.debug: @@ -76,7 +76,7 @@ def main(): env["NDEBUG"] = "1" if args.verbose: argv.append("-d") - env["IDC_BC695_IDC_SOURCE"] = args.idc + env["IDC_BC695_IDC_SOURCE"] = args.idc.replace('\\', '/') for ea64 in [True, False]: if ea64: env["__EA64__"] = "1" diff --git a/makefile b/makefile index 12fa010..ada0082 100644 --- a/makefile +++ b/makefile @@ -371,7 +371,7 @@ $(PARSED_HEADERS_MARKER): $(ST_SDK_TARGETS) $(ST_PARSED_HEADERS_CONFIG) $(ST_SDK ifeq ($(OUT_OF_TREE_BUILD),) $(Q)( cat $(ST_PARSED_HEADERS_CONFIG); echo "OUTPUT_DIRECTORY=$(ST_PARSED_HEADERS_NOXML)" ) | $(DOXYGEN_BIN) - >/dev/null else - (cd $(F) && unzip ../../out_of_tree/parsed_notifications.zip) + (cd $(F) && unzip ../../../out_of_tree/parsed_notifications.zip) endif $(Q)touch $@