Previous 199869 Revisions Next

r36690 Thursday 26th March, 2015 at 18:07:46 UTC by Miodrag Milanović
fix for later OSX (nw)
[/trunk]makefile
[scripts]toolchain.lua

trunk/makefile
r245201r245202
302302GCC_VERSION:=$(shell gcc -dumpversion 2> NUL)
303303CLANG_VERSION:=$(shell %CLANG%\bin\clang --version 2> NUL| head -n 1 | sed "s/[^0-9,.]//g")
304304PYTHON_AVAILABLE:=$(shell python --version > NUL 2>&1 && echo python)
305CHECK_CLANG:=
305306else
306307GCC_VERSION:=$(shell gcc -dumpversion 2> /dev/null)
307CLANG_VERSION:=$(shell clang --version  2> /dev/null | grep '[0-9]\.[0-9]' -o | head -n 1)
308CLANG_VERSION:=$(shell clang --version  2> /dev/null | grep 'LLVM [0-9]\.[0-9]' -o | grep '[0-9]\.[0-9]' -o | head -n 1)
308309PYTHON_AVAILABLE:=$(shell python --version > /dev/null 2>&1 && echo python)
310CHECK_CLANG:=$(shell gcc --version  2> /dev/null | grep 'clang' | head -n 1)
309311endif
310
312ifneq ($(CHECK_CLANG),)
313ifeq ($(ARCHITECTURE),x64)
314ARCHITECTURE=x64_clang
315else
316ARCHITECTURE=x86_clang
317endif
318endif
311319ifneq ($(PYTHON_AVAILABLE),python)
312320$(error Python is not available in path)
313321endif
r245201r245202
495503endif
496504   $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-osx config=$(CONFIG)32
497505
506macosx_x64_clang: generate
507ifndef COMPILE
508   $(SILENT) $(GENIE) $(PARAMS) --gcc=osx-clang --targetos=macosx --osd=$(OSD) --gcc_version=$(GCC_VERSION) --target=$(TARGET) --subtarget=$(SUBTARGET) gmake
509endif
510   $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-osx-clang config=$(CONFIG)64
511
512macosx_x86_clang: generate
513ifndef COMPILE
514   $(SILENT) $(GENIE) $(PARAMS) --gcc=osx-clang --targetos=macosx --os_version=$(DARWIN_VERSION) --osd=$(OSD) --gcc_version=$(GCC_VERSION) --target=$(TARGET) --subtarget=$(SUBTARGET) gmake
515endif
516   $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-osx-clang config=$(CONFIG)32
517
498518$(GENIE):
499519   $(SILENT) $(MAKE) --no-print-directory -R -C 3rdparty/genie/build/gmake.$(OS) -f genie.make
500520
trunk/scripts/toolchain.lua
r245201r245202
2424      { "mingw-clang",   "MinGW (clang compiler)" },
2525      { "nacl",          "Native Client"          },
2626      { "nacl-arm",      "Native Client - ARM"    },
27      { "osx",           "OSX"                    },
27      { "osx",           "OSX (GCC compiler)"     },
28      { "osx-clang",     "OSX (Clang compiler)"   },
2829      { "pnacl",         "Native Client - PNaCl"  },
2930      { "qnx-arm",       "QNX/Blackberry - ARM"   },
3031      { "rpi",           "RaspberryPi"            },
r245201r245202
257258         location (_buildDir .. "projects/" .. _ACTION .. "-osx")
258259      end
259260
261      if "osx-clang" == _OPTIONS["gcc"] then
262         location (_buildDir .. "projects/" .. _ACTION .. "-osx-clang")
263      end
264
260265      if "pnacl" == _OPTIONS["gcc"] then
261266
262267         if not os.getenv("NACL_SDK_ROOT") then
r245201r245202
631636   configuration { "pnacl", "Release" }
632637      libdirs { "$(NACL_SDK_ROOT)/lib/pnacl/Release" }
633638
634   configuration { "osx", "x32" }
639   configuration { "osx*", "x32" }
635640      targetdir (_buildDir .. "osx32_clang" .. "/bin")
636641      objdir (_buildDir .. "osx32_clang" .. "/obj")
637642      buildoptions {
638643         "-m32",
639644      }
640645
641   configuration { "osx", "x64" }
646   configuration { "osx*", "x64" }
642647      targetdir (_buildDir .. "osx64_clang" .. "/bin")
643648      objdir (_buildDir .. "osx64_clang" .. "/obj")
644649      buildoptions {


Previous 199869 Revisions Next


© 1997-2024 The MAME Team