trunk/makefile
| r245214 | r245215 | |
| 324 | 324 | |
| 325 | 325 | SILENT?=@ |
| 326 | 326 | |
| 327 | ifeq ($(TARGET),$(SUBTARGET)) |
| 328 | SUBDIR = $(TARGET) |
| 329 | else |
| 330 | SUBDIR = $(TARGET)$(SUBTARGET) |
| 331 | endif |
| 332 | |
| 327 | 333 | all: $(GENIE) $(TARGETOS)_$(ARCHITECTURE) |
| 328 | 334 | |
| 329 | 335 | windows_x64: generate |
| r245214 | r245215 | |
| 333 | 339 | ifndef COMPILE |
| 334 | 340 | $(SILENT) $(GENIE) $(PARAMS) --gcc=mingw64-gcc --targetos=windows --osd=$(OSD) --gcc_version=$(GCC_VERSION) --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 335 | 341 | endif |
| 336 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-mingw64-gcc config=$(CONFIG)64 WINDRES=$(WINDRES) |
| 342 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-mingw64-gcc config=$(CONFIG)64 WINDRES=$(WINDRES) |
| 337 | 343 | |
| 338 | 344 | windows_x86: generate |
| 339 | 345 | ifndef MINGW32 |
| r245214 | r245215 | |
| 342 | 348 | ifndef COMPILE |
| 343 | 349 | $(SILENT) $(GENIE) $(PARAMS) --gcc=mingw32-gcc --targetos=windows --osd=$(OSD) --gcc_version=$(GCC_VERSION) --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 344 | 350 | endif |
| 345 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-mingw32-gcc config=$(CONFIG)32 WINDRES=$(WINDRES) |
| 351 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-mingw32-gcc config=$(CONFIG)32 WINDRES=$(WINDRES) |
| 346 | 352 | |
| 347 | 353 | windows_x64_clang: generate |
| 348 | 354 | ifndef CLANG |
| r245214 | r245215 | |
| 351 | 357 | ifndef COMPILE |
| 352 | 358 | $(SILENT) $(GENIE) $(PARAMS) --gcc=mingw-clang --targetos=windows --osd=$(OSD) --gcc_version=$(CLANG_VERSION) --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 353 | 359 | endif |
| 354 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-mingw-clang config=$(CONFIG)64 WINDRES=$(WINDRES) |
| 360 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-mingw-clang config=$(CONFIG)64 WINDRES=$(WINDRES) |
| 355 | 361 | |
| 356 | 362 | windows_x86_clang: generate |
| 357 | 363 | ifndef CLANG |
| r245214 | r245215 | |
| 360 | 366 | ifndef COMPILE |
| 361 | 367 | $(SILENT) $(GENIE) $(PARAMS) --gcc=mingw-clang --targetos=windows --osd=$(OSD) --gcc_version=$(CLANG_VERSION) --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 362 | 368 | endif |
| 363 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-mingw-clang config=$(CONFIG)32 WINDRES=$(WINDRES) |
| 369 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-mingw-clang config=$(CONFIG)32 WINDRES=$(WINDRES) |
| 364 | 370 | |
| 365 | 371 | vs2010: generate |
| 366 | 372 | $(SILENT) $(GENIE) $(PARAMS) --targetos=$(TARGETOS) --osd=windows --target=$(TARGET) --subtarget=$(SUBTARGET) vs2010 |
| r245214 | r245215 | |
| 396 | 402 | ifndef COMPILE |
| 397 | 403 | $(SILENT) $(GENIE) --gcc=android-arm --osd=osdmini --target=$(TARGET) --gcc_version=4.8 --subtarget=$(SUBTARGET) gmake |
| 398 | 404 | endif |
| 399 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-android-arm config=$(CONFIG) |
| 405 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-android-arm config=$(CONFIG) |
| 400 | 406 | |
| 401 | 407 | android-mips: generate |
| 402 | 408 | ifndef ANDROID_NDK_MIPS |
| r245214 | r245215 | |
| 408 | 414 | ifndef COMPILE |
| 409 | 415 | $(SILENT) $(GENIE) --gcc=android-mips --osd=osdmini --target=$(TARGET) --gcc_version=4.8 --subtarget=$(SUBTARGET) gmake |
| 410 | 416 | endif |
| 411 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-android-mips config=$(CONFIG) |
| 417 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-android-mips config=$(CONFIG) |
| 412 | 418 | |
| 413 | 419 | android-x86: generate |
| 414 | 420 | ifndef ANDROID_NDK_X86 |
| r245214 | r245215 | |
| 420 | 426 | ifndef COMPILE |
| 421 | 427 | $(SILENT) $(GENIE) --gcc=android-x86 --osd=osdmini --target=$(TARGET) --gcc_version=4.8 --subtarget=$(SUBTARGET) gmake |
| 422 | 428 | endif |
| 423 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-android-x86 config=$(CONFIG) |
| 429 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-android-x86 config=$(CONFIG) |
| 424 | 430 | |
| 425 | 431 | asmjs: generate |
| 426 | 432 | ifndef EMSCRIPTEN |
| r245214 | r245215 | |
| 429 | 435 | ifndef COMPILE |
| 430 | 436 | $(SILENT) $(GENIE) --gcc=asmjs --gcc_version=4.8 --osd=osdmini --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 431 | 437 | endif |
| 432 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-asmjs config=$(CONFIG) |
| 438 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-asmjs config=$(CONFIG) |
| 433 | 439 | |
| 434 | 440 | nacl_x64: generate |
| 435 | 441 | ifndef NACL_SDK_ROOT |
| r245214 | r245215 | |
| 438 | 444 | ifndef COMPILE |
| 439 | 445 | $(SILENT) $(GENIE) --gcc=nacl --gcc_version=4.8 --osd=osdmini --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 440 | 446 | endif |
| 441 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-nacl config=$(CONFIG)64 |
| 447 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-nacl config=$(CONFIG)64 |
| 442 | 448 | |
| 443 | 449 | nacl_x86: generate |
| 444 | 450 | ifndef NACL_SDK_ROOT |
| r245214 | r245215 | |
| 447 | 453 | ifndef COMPILE |
| 448 | 454 | $(SILENT) $(GENIE) --gcc=nacl --gcc_version=4.8 --osd=osdmini --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 449 | 455 | endif |
| 450 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-nacl config=$(CONFIG)32 |
| 456 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-nacl config=$(CONFIG)32 |
| 451 | 457 | |
| 452 | 458 | nacl-arm: generate |
| 453 | 459 | ifndef NACL_SDK_ROOT |
| r245214 | r245215 | |
| 456 | 462 | ifndef COMPILE |
| 457 | 463 | $(SILENT) $(GENIE) --gcc=nacl-arm --gcc_version=4.8 --osd=osdmini --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 458 | 464 | endif |
| 459 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-nacl-arm config=$(CONFIG) |
| 465 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-nacl-arm config=$(CONFIG) |
| 460 | 466 | |
| 461 | 467 | pnacl: generate |
| 462 | 468 | ifndef NACL_SDK_ROOT |
| r245214 | r245215 | |
| 465 | 471 | ifndef COMPILE |
| 466 | 472 | $(SILENT) $(GENIE) --gcc=pnacl --gcc_version=4.8 --osd=osdmini --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 467 | 473 | endif |
| 468 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-pnacl config=$(CONFIG) |
| 474 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-pnacl config=$(CONFIG) |
| 469 | 475 | |
| 470 | 476 | linux_x64: generate |
| 471 | 477 | ifndef COMPILE |
| 472 | 478 | $(SILENT) $(GENIE) $(PARAMS) --gcc=linux-gcc --targetos=$(TARGETOS) --osd=$(OSD) --gcc_version=$(GCC_VERSION) --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 473 | 479 | endif |
| 474 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-linux config=$(CONFIG)64 |
| 480 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-linux config=$(CONFIG)64 |
| 475 | 481 | |
| 476 | 482 | linux_x86: generate |
| 477 | 483 | ifndef COMPILE |
| 478 | 484 | $(SILENT) $(GENIE) $(PARAMS) --gcc=linux-gcc --targetos=$(TARGETOS) --osd=$(OSD) --gcc_version=$(GCC_VERSION) --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 479 | 485 | endif |
| 480 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-linux config=$(CONFIG)32 |
| 486 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-linux config=$(CONFIG)32 |
| 481 | 487 | |
| 482 | 488 | linux_x64_clang: generate |
| 483 | 489 | ifndef COMPILE |
| 484 | 490 | $(SILENT) $(GENIE) $(PARAMS) --gcc=linux-clang --targetos=$(TARGETOS) --osd=$(OSD) --gcc_version=$(CLANG_VERSION) --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 485 | 491 | endif |
| 486 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-linux-clang config=$(CONFIG)64 |
| 492 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-linux-clang config=$(CONFIG)64 |
| 487 | 493 | |
| 488 | 494 | linux_x86_clang: generate |
| 489 | 495 | ifndef COMPILE |
| 490 | 496 | $(SILENT) $(GENIE) $(PARAMS) --gcc=linux-clang --targetos=$(TARGETOS) --osd=$(OSD) --gcc_version=$(CLANG_VERSION) --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 491 | 497 | endif |
| 492 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-linux-clang config=$(CONFIG)32 |
| 498 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-linux-clang config=$(CONFIG)32 |
| 493 | 499 | |
| 494 | 500 | macosx_x64: generate |
| 495 | 501 | ifndef COMPILE |
| 496 | 502 | $(SILENT) $(GENIE) $(PARAMS) --gcc=osx --targetos=macosx --osd=$(OSD) --gcc_version=$(GCC_VERSION) --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 497 | 503 | endif |
| 498 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-osx config=$(CONFIG)64 |
| 504 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-osx config=$(CONFIG)64 |
| 499 | 505 | |
| 500 | 506 | macosx_x86: generate |
| 501 | 507 | ifndef COMPILE |
| 502 | 508 | $(SILENT) $(GENIE) $(PARAMS) --gcc=osx --targetos=macosx --os_version=$(DARWIN_VERSION) --osd=$(OSD) --gcc_version=$(GCC_VERSION) --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 503 | 509 | endif |
| 504 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-osx config=$(CONFIG)32 |
| 510 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-osx config=$(CONFIG)32 |
| 505 | 511 | |
| 506 | 512 | macosx_x64_clang: generate |
| 507 | 513 | ifndef COMPILE |
| 508 | 514 | $(SILENT) $(GENIE) $(PARAMS) --gcc=osx-clang --targetos=macosx --osd=$(OSD) --gcc_version=$(GCC_VERSION) --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 509 | 515 | endif |
| 510 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-osx-clang config=$(CONFIG)64 |
| 516 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-osx-clang config=$(CONFIG)64 |
| 511 | 517 | |
| 512 | 518 | macosx_x86_clang: generate |
| 513 | 519 | ifndef COMPILE |
| 514 | 520 | $(SILENT) $(GENIE) $(PARAMS) --gcc=osx-clang --targetos=macosx --os_version=$(DARWIN_VERSION) --osd=$(OSD) --gcc_version=$(GCC_VERSION) --target=$(TARGET) --subtarget=$(SUBTARGET) gmake |
| 515 | 521 | endif |
| 516 | | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/gmake-osx-clang config=$(CONFIG)32 |
| 522 | $(SILENT) $(MAKE) --no-print-directory -R -C build/projects/$(SUBDIR)/gmake-osx-clang config=$(CONFIG)32 |
| 517 | 523 | |
| 518 | 524 | $(GENIE): |
| 519 | 525 | $(SILENT) $(MAKE) --no-print-directory -R -C 3rdparty/genie/build/gmake.$(OS) -f genie.make |
trunk/scripts/genie.lua
| r245214 | r245215 | |
| 205 | 205 | } |
| 206 | 206 | configuration {} |
| 207 | 207 | |
| 208 | | msgcompile ("Compiling $(subst ../../../,,$<)...") |
| 208 | msgcompile ("Compiling $(subst ../,,$<)...") |
| 209 | 209 | |
| 210 | | msgcompile_objc ("Objective-C compiling $(subst ../../../,,$<)...") |
| 210 | msgcompile_objc ("Objective-C compiling $(subst ../,,$<)...") |
| 211 | 211 | |
| 212 | | msgresource ("Compiling resources $(subst ../../../,,$<)...") |
| 212 | msgresource ("Compiling resources $(subst ../,,$<)...") |
| 213 | 213 | |
| 214 | 214 | msglinking ("Linking $(notdir $@)...") |
| 215 | 215 | |
| r245214 | r245215 | |
| 483 | 483 | if _OPTIONS["MAP"] then |
| 484 | 484 | if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then |
| 485 | 485 | linkoptions { |
| 486 | | "-Wl,-Map," .. "../../../" .. _OPTIONS["target"] .. ".map" |
| 486 | "-Wl,-Map," .. "../../../../" .. _OPTIONS["target"] .. ".map" |
| 487 | 487 | } |
| 488 | 488 | else |
| 489 | 489 | linkoptions { |
| 490 | | "-Wl,-Map," .. "../../../" .. _OPTIONS["target"] .. _OPTIONS["subtarget"] .. ".map" |
| 490 | "-Wl,-Map," .. "../../../../" .. _OPTIONS["target"] .. _OPTIONS["subtarget"] .. ".map" |
| 491 | 491 | } |
| 492 | 492 | |
| 493 | 493 | end |
| r245214 | r245215 | |
| 580 | 580 | -- CCOMFLAGS += -Wno-cast-align |
| 581 | 581 | --endif |
| 582 | 582 | |
| 583 | | if not toolchain(MAME_BUILD_DIR) then |
| 583 | local subdir |
| 584 | if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then |
| 585 | subdir = _OPTIONS["target"] |
| 586 | else |
| 587 | subdir = _OPTIONS["target"] .. _OPTIONS["subtarget"] |
| 588 | end |
| 589 | |
| 590 | if not toolchain(MAME_BUILD_DIR, subdir) then |
| 584 | 591 | return -- no action specified |
| 585 | 592 | end |
| 586 | 593 | |
trunk/scripts/toolchain.lua
| r245214 | r245215 | |
| 60 | 60 | description = "Set iOS target version (default: 8.0).", |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | | function toolchain(_buildDir) |
| 63 | function toolchain(_buildDir, _subDir) |
| 64 | 64 | |
| 65 | | location (_buildDir .. "projects/" .. _ACTION) |
| 65 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION) |
| 66 | 66 | |
| 67 | 67 | local androidPlatform = "android-14" |
| 68 | 68 | if _OPTIONS["with-android"] then |
| r245214 | r245215 | |
| 90 | 90 | premake.gcc.cc = "$(ANDROID_NDK_ARM)/bin/arm-linux-androideabi-gcc" |
| 91 | 91 | premake.gcc.cxx = "$(ANDROID_NDK_ARM)/bin/arm-linux-androideabi-g++" |
| 92 | 92 | premake.gcc.ar = "$(ANDROID_NDK_ARM)/bin/arm-linux-androideabi-ar" |
| 93 | | location (_buildDir .. "projects/" .. _ACTION .. "-android-arm") |
| 93 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-android-arm") |
| 94 | 94 | end |
| 95 | 95 | |
| 96 | 96 | if "android-mips" == _OPTIONS["gcc"] then |
| r245214 | r245215 | |
| 102 | 102 | premake.gcc.cc = "$(ANDROID_NDK_MIPS)/bin/mipsel-linux-android-gcc" |
| 103 | 103 | premake.gcc.cxx = "$(ANDROID_NDK_MIPS)/bin/mipsel-linux-android-g++" |
| 104 | 104 | premake.gcc.ar = "$(ANDROID_NDK_MIPS)/bin/mipsel-linux-android-ar" |
| 105 | | location (_buildDir .. "projects/" .. _ACTION .. "-android-mips") |
| 105 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-android-mips") |
| 106 | 106 | end |
| 107 | 107 | |
| 108 | 108 | if "android-x86" == _OPTIONS["gcc"] then |
| r245214 | r245215 | |
| 114 | 114 | premake.gcc.cc = "$(ANDROID_NDK_X86)/bin/i686-linux-android-gcc" |
| 115 | 115 | premake.gcc.cxx = "$(ANDROID_NDK_X86)/bin/i686-linux-android-g++" |
| 116 | 116 | premake.gcc.ar = "$(ANDROID_NDK_X86)/bin/i686-linux-android-ar" |
| 117 | | location (_buildDir .. "projects/" .. _ACTION .. "-android-x86") |
| 117 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-android-x86") |
| 118 | 118 | end |
| 119 | 119 | |
| 120 | 120 | if "asmjs" == _OPTIONS["gcc"] then |
| r245214 | r245215 | |
| 127 | 127 | premake.gcc.cxx = "$(EMSCRIPTEN)/em++" |
| 128 | 128 | premake.gcc.ar = "$(EMSCRIPTEN)/emar" |
| 129 | 129 | premake.gcc.llvm = true |
| 130 | | location (_buildDir .. "projects/" .. _ACTION .. "-asmjs") |
| 130 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-asmjs") |
| 131 | 131 | end |
| 132 | 132 | |
| 133 | 133 | if "freebsd" == _OPTIONS["gcc"] then |
| 134 | | location (_buildDir .. "projects/" .. _ACTION .. "-freebsd") |
| 134 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-freebsd") |
| 135 | 135 | end |
| 136 | 136 | |
| 137 | 137 | if "ios-arm" == _OPTIONS["gcc"] then |
| 138 | 138 | premake.gcc.cc = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" |
| 139 | 139 | premake.gcc.cxx = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" |
| 140 | 140 | premake.gcc.ar = "ar" |
| 141 | | location (_buildDir .. "projects/" .. _ACTION .. "-ios-arm") |
| 141 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-ios-arm") |
| 142 | 142 | end |
| 143 | 143 | |
| 144 | 144 | if "ios-simulator" == _OPTIONS["gcc"] then |
| 145 | 145 | premake.gcc.cc = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" |
| 146 | 146 | premake.gcc.cxx = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" |
| 147 | 147 | premake.gcc.ar = "ar" |
| 148 | | location (_buildDir .. "projects/" .. _ACTION .. "-ios-simulator") |
| 148 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-ios-simulator") |
| 149 | 149 | end |
| 150 | 150 | |
| 151 | 151 | if "linux-gcc" == _OPTIONS["gcc"] then |
| r245214 | r245215 | |
| 171 | 171 | premake.gcc.cxx = "@g++-4.7" |
| 172 | 172 | end |
| 173 | 173 | premake.gcc.ar = "ar" |
| 174 | | location (_buildDir .. "projects/" .. _ACTION .. "-linux") |
| 174 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-linux") |
| 175 | 175 | end |
| 176 | 176 | |
| 177 | 177 | if "linux-clang" == _OPTIONS["gcc"] then |
| 178 | 178 | premake.gcc.cc = "clang" |
| 179 | 179 | premake.gcc.cxx = "clang++" |
| 180 | 180 | premake.gcc.ar = "ar" |
| 181 | | location (_buildDir .. "projects/" .. _ACTION .. "-linux-clang") |
| 181 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-linux-clang") |
| 182 | 182 | end |
| 183 | 183 | |
| 184 | 184 | if "mingw32-gcc" == _OPTIONS["gcc"] then |
| r245214 | r245215 | |
| 188 | 188 | premake.gcc.cc = "$(MINGW32)/bin/i686-w64-mingw32-gcc" |
| 189 | 189 | premake.gcc.cxx = "$(MINGW32)/bin/i686-w64-mingw32-g++" |
| 190 | 190 | premake.gcc.ar = "$(MINGW32)/bin/ar" |
| 191 | | location (_buildDir .. "projects/" .. _ACTION .. "-mingw32-gcc") |
| 191 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-mingw32-gcc") |
| 192 | 192 | end |
| 193 | 193 | |
| 194 | 194 | if "mingw64-gcc" == _OPTIONS["gcc"] then |
| r245214 | r245215 | |
| 198 | 198 | premake.gcc.cc = "$(MINGW64)/bin/x86_64-w64-mingw32-gcc" |
| 199 | 199 | premake.gcc.cxx = "$(MINGW64)/bin/x86_64-w64-mingw32-g++" |
| 200 | 200 | premake.gcc.ar = "$(MINGW64)/bin/ar" |
| 201 | | location (_buildDir .. "projects/" .. _ACTION .. "-mingw64-gcc") |
| 201 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-mingw64-gcc") |
| 202 | 202 | end |
| 203 | 203 | |
| 204 | 204 | |
| r245214 | r245215 | |
| 207 | 207 | premake.gcc.cxx = "$(CLANG)/bin/clang++" |
| 208 | 208 | premake.gcc.ar = "$(CLANG)/bin/llvm-ar" |
| 209 | 209 | premake.gcc.llvm = true |
| 210 | | location (_buildDir .. "projects/" .. _ACTION .. "-mingw-clang") |
| 210 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-mingw-clang") |
| 211 | 211 | end |
| 212 | 212 | |
| 213 | 213 | if "nacl" == _OPTIONS["gcc"] then |
| r245214 | r245215 | |
| 226 | 226 | premake.gcc.cc = naclToolchain .. "gcc" |
| 227 | 227 | premake.gcc.cxx = naclToolchain .. "g++" |
| 228 | 228 | premake.gcc.ar = naclToolchain .. "ar" |
| 229 | | location (_buildDir .. "projects/" .. _ACTION .. "-nacl") |
| 229 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-nacl") |
| 230 | 230 | end |
| 231 | 231 | |
| 232 | 232 | if "nacl-arm" == _OPTIONS["gcc"] then |
| r245214 | r245215 | |
| 245 | 245 | premake.gcc.cc = naclToolchain .. "gcc" |
| 246 | 246 | premake.gcc.cxx = naclToolchain .. "g++" |
| 247 | 247 | premake.gcc.ar = naclToolchain .. "ar" |
| 248 | | location (_buildDir .. "projects/" .. _ACTION .. "-nacl-arm") |
| 248 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-nacl-arm") |
| 249 | 249 | end |
| 250 | 250 | |
| 251 | 251 | if "osx" == _OPTIONS["gcc"] then |
| r245214 | r245215 | |
| 255 | 255 | premake.gcc.cxx = osxToolchain .. "clang++" |
| 256 | 256 | premake.gcc.ar = osxToolchain .. "ar" |
| 257 | 257 | end |
| 258 | | location (_buildDir .. "projects/" .. _ACTION .. "-osx") |
| 258 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-osx") |
| 259 | 259 | end |
| 260 | 260 | |
| 261 | 261 | if "osx-clang" == _OPTIONS["gcc"] then |
| 262 | | location (_buildDir .. "projects/" .. _ACTION .. "-osx-clang") |
| 262 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-osx-clang") |
| 263 | 263 | end |
| 264 | 264 | |
| 265 | 265 | if "pnacl" == _OPTIONS["gcc"] then |
| r245214 | r245215 | |
| 278 | 278 | premake.gcc.cc = naclToolchain .. "clang" |
| 279 | 279 | premake.gcc.cxx = naclToolchain .. "clang++" |
| 280 | 280 | premake.gcc.ar = naclToolchain .. "ar" |
| 281 | | location (_buildDir .. "projects/" .. _ACTION .. "-pnacl") |
| 281 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-pnacl") |
| 282 | 282 | end |
| 283 | 283 | |
| 284 | 284 | if "qnx-arm" == _OPTIONS["gcc"] then |
| r245214 | r245215 | |
| 290 | 290 | premake.gcc.cc = "$(QNX_HOST)/usr/bin/arm-unknown-nto-qnx8.0.0eabi-gcc" |
| 291 | 291 | premake.gcc.cxx = "$(QNX_HOST)/usr/bin/arm-unknown-nto-qnx8.0.0eabi-g++" |
| 292 | 292 | premake.gcc.ar = "$(QNX_HOST)/usr/bin/arm-unknown-nto-qnx8.0.0eabi-ar" |
| 293 | | location (_buildDir .. "projects/" .. _ACTION .. "-qnx-arm") |
| 293 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-qnx-arm") |
| 294 | 294 | end |
| 295 | 295 | |
| 296 | 296 | if "rpi" == _OPTIONS["gcc"] then |
| 297 | | location (_buildDir .. "projects/" .. _ACTION .. "-rpi") |
| 297 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-rpi") |
| 298 | 298 | end |
| 299 | 299 | elseif _ACTION == "vs2012" or _ACTION == "vs2013" or _ACTION == "vs2015" then |
| 300 | 300 | |
| 301 | 301 | if (_ACTION .. "-clang") == _OPTIONS["vs"] then |
| 302 | 302 | premake.vstudio.toolset = ("LLVM-" .. _ACTION) |
| 303 | | location (_buildDir .. "projects/" .. _ACTION .. "-clang") |
| 303 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-clang") |
| 304 | 304 | end |
| 305 | 305 | |
| 306 | 306 | if "winphone8" == _OPTIONS["vs"] then |
| 307 | 307 | premake.vstudio.toolset = "v110_wp80" |
| 308 | | location (_buildDir .. "projects/" .. _ACTION .. "-winphone8") |
| 308 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-winphone8") |
| 309 | 309 | end |
| 310 | 310 | |
| 311 | 311 | if "winphone81" == _OPTIONS["vs"] then |
| 312 | 312 | premake.vstudio.toolset = "v120_wp81" |
| 313 | 313 | platforms { "ARM" } |
| 314 | | location (_buildDir .. "projects/" .. _ACTION .. "-winphone81") |
| 314 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-winphone81") |
| 315 | 315 | end |
| 316 | 316 | |
| 317 | 317 | if "intel-14" == _OPTIONS["vs"] then |
| 318 | 318 | premake.vstudio.toolset = "Intel C++ Compiler XE 14.0" |
| 319 | | location (_buildDir .. "projects/" .. _ACTION .. "-intel") |
| 319 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-intel") |
| 320 | 320 | end |
| 321 | 321 | |
| 322 | 322 | if "intel-15" == _OPTIONS["vs"] then |
| 323 | 323 | premake.vstudio.toolset = "Intel C++ Compiler XE 15.0" |
| 324 | | location (_buildDir .. "projects/" .. _ACTION .. "-intel") |
| 324 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-intel") |
| 325 | 325 | end |
| 326 | 326 | |
| 327 | 327 | if ("vs2012-xp") == _OPTIONS["vs"] then |
| 328 | 328 | premake.vstudio.toolset = ("v110_xp") |
| 329 | | location (_buildDir .. "projects/" .. _ACTION .. "-xp") |
| 329 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-xp") |
| 330 | 330 | end |
| 331 | 331 | |
| 332 | 332 | if ("vs2013-xp") == _OPTIONS["vs"] then |
| 333 | 333 | premake.vstudio.toolset = ("v120_xp") |
| 334 | | location (_buildDir .. "projects/" .. _ACTION .. "-xp") |
| 334 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-xp") |
| 335 | 335 | end |
| 336 | 336 | end |
| 337 | 337 | |