Skip to content

Commit 610d7b8

Browse files
committed
support vs2017
1 parent 55e6200 commit 610d7b8

File tree

5 files changed

+40
-23
lines changed

5 files changed

+40
-23
lines changed

.gitlab-ci.yml

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,45 @@ checked_by_cppcheck:
2323
- python
2424
- cppcheck
2525

26-
compile_windows:
26+
compile.windows:
2727
stage: build
2828
script:
2929
- 'cd tools/batch/ && python .\..\..\tools\jsonschematoc11 glTF_2.0_schema.ini && cd ../../'
30-
- 'call "%VS140COMNTOOLS%VsDevCmd.bat"'
3130
- 'if exist build rmdir /s /q build'
32-
- 'if exist output rmdir /s /q output'
3331
- 'mkdir build && cd build'
32+
- 'mkdir vs2017 && cd vs2017'
33+
- 'call "%VS2017COMNTOOLS%VsDevCmd.bat"'
34+
- 'mkdir win32 && cd win32'
35+
- 'cmake -G "Visual Studio 15 2017" -DLIBGLTF_WITH_UNICODE=TRUE -DCUSTOM_OUT_PATH="%CD%\output" ../../../'
36+
- 'msbuild libgltf.sln /t:Build /p:Configuration="Debug" /p:Platform="Win32"'
37+
- 'output\bin\win32\Debug\runtest.exe ..\..\..\resource\example-2.0\glTF-BarramundiFish.gltf'
38+
- 'output\bin\win32\Debug\runtest.exe ..\..\..\resource\example-2.0\glTF-Draco-BarramundiFish.gltf'
39+
- 'output\bin\win32\Debug\runtest.exe ..\..\..\resource\example-2.0\glTF-pbrSpecularGlossinessBarramundiFish.gltf'
40+
- 'cd ../'
41+
- 'mkdir win64 && cd win64'
42+
- 'cmake -G "Visual Studio 15 2017 Win64" -DLIBGLTF_WITH_UNICODE=TRUE -DCUSTOM_OUT_PATH="%CD%\output" ../../../'
43+
- 'msbuild libgltf.sln /t:Build /p:Configuration="Debug" /p:Platform="x64"'
44+
- 'output\bin\win64\Debug\runtest.exe ..\..\..\resource\example-2.0\glTF-BarramundiFish.gltf'
45+
- 'output\bin\win64\Debug\runtest.exe ..\..\..\resource\example-2.0\glTF-Draco-BarramundiFish.gltf'
46+
- 'output\bin\win64\Debug\runtest.exe ..\..\..\resource\example-2.0\glTF-pbrSpecularGlossinessBarramundiFish.gltf'
47+
- 'cd ../'
48+
- 'cd ../'
49+
- 'mkdir vs2015 && cd vs2015'
50+
- 'call "%VS140COMNTOOLS%VsDevCmd.bat"'
3451
- 'mkdir win32 && cd win32'
35-
- 'cmake -G "Visual Studio 14 2015" -DLIBGLTF_WITH_UNICODE=TRUE ../../'
36-
- 'msbuild libgltf.sln /t:Rebuild /p:Configuration="Debug" /p:Platform="Win32"'
37-
- '..\..\output\bin\win32\Debug\runtest.exe ..\..\resource\example-2.0\glTF-BarramundiFish.gltf'
38-
- '..\..\output\bin\win32\Debug\runtest.exe ..\..\resource\example-2.0\glTF-Draco-BarramundiFish.gltf'
39-
- '..\..\output\bin\win32\Debug\runtest.exe ..\..\resource\example-2.0\glTF-pbrSpecularGlossinessBarramundiFish.gltf'
52+
- 'cmake -G "Visual Studio 14 2015" -DLIBGLTF_WITH_UNICODE=TRUE -DCUSTOM_OUT_PATH="%CD%\output" ../../../'
53+
- 'msbuild libgltf.sln /t:Build /p:Configuration="Debug" /p:Platform="Win32"'
54+
- 'output\bin\win32\Debug\runtest.exe ..\..\..\resource\example-2.0\glTF-BarramundiFish.gltf'
55+
- 'output\bin\win32\Debug\runtest.exe ..\..\..\resource\example-2.0\glTF-Draco-BarramundiFish.gltf'
56+
- 'output\bin\win32\Debug\runtest.exe ..\..\..\resource\example-2.0\glTF-pbrSpecularGlossinessBarramundiFish.gltf'
4057
- 'cd ../'
4158
- 'mkdir win64 && cd win64'
42-
- 'cmake -G "Visual Studio 14 2015 Win64" -DLIBGLTF_WITH_UNICODE=TRUE ../../'
43-
- 'msbuild libgltf.sln /t:Rebuild /p:Configuration="Debug" /p:Platform="x64"'
44-
- '..\..\output\bin\win64\Debug\runtest.exe ..\..\resource\example-2.0\glTF-BarramundiFish.gltf'
45-
- '..\..\output\bin\win64\Debug\runtest.exe ..\..\resource\example-2.0\glTF-Draco-BarramundiFish.gltf'
46-
- '..\..\output\bin\win64\Debug\runtest.exe ..\..\resource\example-2.0\glTF-pbrSpecularGlossinessBarramundiFish.gltf'
59+
- 'cmake -G "Visual Studio 14 2015 Win64" -DLIBGLTF_WITH_UNICODE=TRUE -DCUSTOM_OUT_PATH="%CD%\output" ../../../'
60+
- 'msbuild libgltf.sln /t:Build /p:Configuration="Debug" /p:Platform="x64"'
61+
- 'output\bin\win64\Debug\runtest.exe ..\..\..\resource\example-2.0\glTF-BarramundiFish.gltf'
62+
- 'output\bin\win64\Debug\runtest.exe ..\..\..\resource\example-2.0\glTF-Draco-BarramundiFish.gltf'
63+
- 'output\bin\win64\Debug\runtest.exe ..\..\..\resource\example-2.0\glTF-pbrSpecularGlossinessBarramundiFish.gltf'
64+
- 'cd ../'
4765
- 'cd ../'
4866
- 'cd ../'
4967
tags:
@@ -52,8 +70,9 @@ compile_windows:
5270
- python
5371
- cmake
5472
- vs2015
73+
- vs2017
5574

56-
compile_linux:
75+
compile.linux:
5776
stage: build
5877
script:
5978
- 'cd tools/batch/ && ./update_parser_by_scheme.sh && cd ../../'
@@ -81,7 +100,7 @@ compile_linux:
81100
- valgrind
82101
- gcovr
83102

84-
compile_macos:
103+
compile.macos:
85104
stage: build
86105
script:
87106
- 'cd tools/batch/ && ./update_parser_by_scheme.sh && cd ../../'
@@ -99,7 +118,7 @@ compile_macos:
99118
- make
100119
- gcc
101120

102-
compile_android:
121+
compile.android:
103122
stage: build
104123
script:
105124
- 'cd tools/batch/ && ./update_parser_by_scheme.sh && cd ../../'
@@ -132,7 +151,7 @@ compile_android:
132151
- cmake
133152
- ninja
134153

135-
compile_ios:
154+
compile.ios:
136155
stage: build
137156
script:
138157
- 'cd tools/batch/ && ./update_parser_by_scheme.sh && cd ../../'

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ else()
9595
set(OUT_PATH ${CUSTOM_OUT_PATH})
9696
endif()
9797
set(OUT_BIN_PATH "${OUT_PATH}/bin/${PLATFORM_NAME}")
98-
set(OUT_LIB_PATH "${ROOT_PATH}/output/lib/${PLATFORM_NAME}")
99-
set(INTERNAL_OUT_PATH "${ROOT_PATH}/output")
100-
set(INTERNAL_BIN_PATH "${INTERNAL_OUT_PATH}/bin/${PLATFORM_NAME}")
98+
set(OUT_LIB_PATH "${OUT_PATH}/lib/${PLATFORM_NAME}")
10199

102100
if((CMAKE_COMPILER_IS_GNUCC STREQUAL "1") OR (CMAKE_COMPILER_IS_GNUCXX STREQUAL "1"))
103101
add_definitions(-DCOMPILER_IS_GCC)

include/libgltf/libgltf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#define LIBGLTF_MAJOR_VERSION 0
1010
#define LIBGLTF_MINOR_VERSION 1
11-
#define LIBGLTF_PATCH_VERSION 4
11+
#define LIBGLTF_PATCH_VERSION 5
1212

1313
#if defined(UNICODE)
1414
#if defined(USING_CHAR16)

source/runtest/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ elseif(${LIBGLTF_PLATFORM_LINUX} OR ${LIBGLTF_PLATFORM_MACOS})
3636
endif()
3737
link_libraries(${LIBRARY_PATH_LIST})
3838

39-
set(EXECUTABLE_OUTPUT_PATH ${INTERNAL_BIN_PATH})
39+
set(EXECUTABLE_OUTPUT_PATH ${OUT_BIN_PATH})
4040

4141
add_executable(runtest
4242
${HEADER_FILE_LIST}

tools/batch/glTF_2.0_schema.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ extensions_schema_directories=
66
%(CD)s/../../external/glTF/extensions/2.0/Khronos/KHR_materials_pbrSpecularGlossiness/schema
77
major_version=0
88
minor_version=1
9-
patch_version=4
9+
patch_version=5
1010

1111
[code.headers]
1212
extension.schema.json=%(CD)s/codes/extension.schema.json.h

0 commit comments

Comments
 (0)