From c359c862e4bde0be3af4f78e0adfb57cf7478b7b Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Mon, 21 Dec 2015 01:20:35 +0900 Subject: [PATCH] Add appveyor file. --- appveyor.yml | 12 ++++++++++++ premake4.lua | 29 +++++++++++++++++++++++++++++ vcsetup.bat | 1 + 3 files changed, 42 insertions(+) create mode 100644 appveyor.yml create mode 100644 premake4.lua create mode 100644 vcsetup.bat diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..e6fb52a --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,12 @@ +version: 0.9.{build} + +# scripts that runs after repo cloning. +install: + - vcsetup.bat + +platform: x64 +configuration: Release + +build: + parallel: true + project: TinyGLTFSolution.sln diff --git a/premake4.lua b/premake4.lua new file mode 100644 index 0000000..d6178d7 --- /dev/null +++ b/premake4.lua @@ -0,0 +1,29 @@ +sources = { + "test.cc", + } + +-- premake4.lua +solution "TinyGLTFLoaderSolution" + configurations { "Release", "Debug" } + + if (os.is("windows")) then + platforms { "x32", "x64" } + else + platforms { "native", "x32", "x64" } + end + + -- A project defines one build target + project "tinygltfloader" + kind "ConsoleApp" + language "C++" + files { sources } + + configuration "Debug" + defines { "DEBUG" } -- -DDEBUG + flags { "Symbols" } + targetname "test_tinygltfloader_debug" + + configuration "Release" + -- defines { "NDEBUG" } -- -NDEBUG + flags { "Symbols", "Optimize" } + targetname "test_tinygltfloader" diff --git a/vcsetup.bat b/vcsetup.bat new file mode 100644 index 0000000..921c1e9 --- /dev/null +++ b/vcsetup.bat @@ -0,0 +1 @@ +.\\tools\\windows\\premake5.exe vs2013