koffi 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CMakeLists.txt +94 -0
- package/README.md +153 -0
- package/build/ALL_BUILD.vcxproj +190 -0
- package/build/ALL_BUILD.vcxproj.filters +8 -0
- package/build/CMakeCache.txt +429 -0
- package/build/CMakeFiles/3.23.0-rc1/CMakeASMCompiler.cmake +20 -0
- package/build/CMakeFiles/3.23.0-rc1/CMakeASM_MASMCompiler.cmake +20 -0
- package/build/CMakeFiles/3.23.0-rc1/CMakeCCompiler.cmake +72 -0
- package/build/CMakeFiles/3.23.0-rc1/CMakeCXXCompiler.cmake +83 -0
- package/build/CMakeFiles/3.23.0-rc1/CMakeDetermineCompilerABI_C.bin +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CMakeDetermineCompilerABI_CXX.bin +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CMakeRCCompiler.cmake +6 -0
- package/build/CMakeFiles/3.23.0-rc1/CMakeSystem.cmake +15 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdC/CMakeCCompilerId.c +828 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdC/CompilerIdC.exe +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdC/CompilerIdC.vcxproj +71 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdC/Debug/CMakeCCompilerId.obj +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdC/Debug/CompilerIdC.exe.recipe +11 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdC/Debug/CompilerIdC.tlog/CL.command.1.tlog +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdC/Debug/CompilerIdC.tlog/CL.read.1.tlog +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdC/Debug/CompilerIdC.tlog/CL.write.1.tlog +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdC/Debug/CompilerIdC.tlog/CompilerIdC.lastbuildstate +2 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdC/Debug/CompilerIdC.tlog/link.command.1.tlog +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdC/Debug/CompilerIdC.tlog/link.read.1.tlog +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdC/Debug/CompilerIdC.tlog/link.write.1.tlog +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdCXX/CMakeCXXCompilerId.cpp +816 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdCXX/CompilerIdCXX.exe +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdCXX/CompilerIdCXX.vcxproj +71 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdCXX/Debug/CMakeCXXCompilerId.obj +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdCXX/Debug/CompilerIdCXX.exe.recipe +11 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.command.1.tlog +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.read.1.tlog +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.write.1.tlog +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CompilerIdCXX.lastbuildstate +2 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.command.1.tlog +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.read.1.tlog +0 -0
- package/build/CMakeFiles/3.23.0-rc1/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.write.1.tlog +0 -0
- package/build/CMakeFiles/3.23.0-rc1/VCTargetsPath.txt +1 -0
- package/build/CMakeFiles/3.23.0-rc1/VCTargetsPath.vcxproj +31 -0
- package/build/CMakeFiles/3.23.0-rc1/x64/Debug/VCTargetsPath.recipe +11 -0
- package/build/CMakeFiles/3.23.0-rc1/x64/Debug/VCTargetsPath.tlog/VCTargetsPath.lastbuildstate +2 -0
- package/build/CMakeFiles/41bcd16856091d4a38fd1f71fbe2f202/generate.stamp.rule +1 -0
- package/build/CMakeFiles/CMakeError.log +108 -0
- package/build/CMakeFiles/CMakeOutput.log +413 -0
- package/build/CMakeFiles/TargetDirectories.txt +4 -0
- package/build/CMakeFiles/cmake.check_cache +1 -0
- package/build/CMakeFiles/generate.stamp +1 -0
- package/build/CMakeFiles/generate.stamp.depend +28 -0
- package/build/CMakeFiles/generate.stamp.list +1 -0
- package/build/Raylib.dir/Release/Raylib.dll.recipe +14 -0
- package/build/Raylib.dir/Release/Raylib.tlog/CL.command.1.tlog +0 -0
- package/build/Raylib.dir/Release/Raylib.tlog/CL.read.1.tlog +0 -0
- package/build/Raylib.dir/Release/Raylib.tlog/CL.write.1.tlog +0 -0
- package/build/Raylib.dir/Release/Raylib.tlog/CustomBuild.command.1.tlog +10 -0
- package/build/Raylib.dir/Release/Raylib.tlog/CustomBuild.read.1.tlog +27 -0
- package/build/Raylib.dir/Release/Raylib.tlog/CustomBuild.write.1.tlog +2 -0
- package/build/Raylib.dir/Release/Raylib.tlog/Raylib.lastbuildstate +2 -0
- package/build/Raylib.dir/Release/Raylib.tlog/Raylib.write.1u.tlog +0 -0
- package/build/Raylib.dir/Release/Raylib.tlog/link.command.1.tlog +0 -0
- package/build/Raylib.dir/Release/Raylib.tlog/link.read.1.tlog +0 -0
- package/build/Raylib.dir/Release/Raylib.tlog/link.write.1.tlog +0 -0
- package/build/Raylib.dir/Release/raudio.obj +0 -0
- package/build/Raylib.dir/Release/rcore.obj +0 -0
- package/build/Raylib.dir/Release/rglfw.obj +0 -0
- package/build/Raylib.dir/Release/rmodels.obj +0 -0
- package/build/Raylib.dir/Release/rshapes.obj +0 -0
- package/build/Raylib.dir/Release/rtext.obj +0 -0
- package/build/Raylib.dir/Release/rtextures.obj +0 -0
- package/build/Raylib.dir/Release/utils.obj +0 -0
- package/build/Raylib.vcxproj +358 -0
- package/build/Raylib.vcxproj.filters +37 -0
- package/build/Release/Raylib.dll +0 -0
- package/build/Release/Raylib.exp +0 -0
- package/build/Release/Raylib.lib +0 -0
- package/build/Release/koffi.exp +0 -0
- package/build/Release/koffi.lib +0 -0
- package/build/Release/koffi.node +0 -0
- package/build/ZERO_CHECK.vcxproj +176 -0
- package/build/ZERO_CHECK.vcxproj.filters +13 -0
- package/build/cmake_install.cmake +44 -0
- package/build/koffi.dir/Release/call_arm64.obj +0 -0
- package/build/koffi.dir/Release/call_x64_sysv.obj +0 -0
- package/build/koffi.dir/Release/call_x64_win.obj +0 -0
- package/build/koffi.dir/Release/call_x64_win_fwd.obj +0 -0
- package/build/koffi.dir/Release/call_x86.obj +0 -0
- package/build/koffi.dir/Release/ffi.obj +0 -0
- package/build/koffi.dir/Release/koffi.node.recipe +14 -0
- package/build/koffi.dir/Release/koffi.tlog/CL.command.1.tlog +0 -0
- package/build/koffi.dir/Release/koffi.tlog/CL.read.1.tlog +0 -0
- package/build/koffi.dir/Release/koffi.tlog/CL.write.1.tlog +0 -0
- package/build/koffi.dir/Release/koffi.tlog/CustomBuild.command.1.tlog +10 -0
- package/build/koffi.dir/Release/koffi.tlog/CustomBuild.read.1.tlog +27 -0
- package/build/koffi.dir/Release/koffi.tlog/CustomBuild.write.1.tlog +2 -0
- package/build/koffi.dir/Release/koffi.tlog/Masm.read.1u.tlog +0 -0
- package/build/koffi.dir/Release/koffi.tlog/Masm.write.1u.tlog +0 -0
- package/build/koffi.dir/Release/koffi.tlog/koffi.lastbuildstate +2 -0
- package/build/koffi.dir/Release/koffi.tlog/koffi.write.1u.tlog +0 -0
- package/build/koffi.dir/Release/koffi.tlog/link.command.1.tlog +0 -0
- package/build/koffi.dir/Release/koffi.tlog/link.read.1.tlog +0 -0
- package/build/koffi.dir/Release/koffi.tlog/link.write.1.tlog +0 -0
- package/build/koffi.dir/Release/libcc.obj +0 -0
- package/build/koffi.dir/Release/util.obj +0 -0
- package/build/koffi.dir/Release/win_delay_load_hook.obj +0 -0
- package/build/koffi.sln +67 -0
- package/build/koffi.vcxproj +363 -0
- package/build/koffi.vcxproj.filters +40 -0
- package/build/x64/Release/ALL_BUILD/ALL_BUILD.recipe +20 -0
- package/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/ALL_BUILD.lastbuildstate +2 -0
- package/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/CustomBuild.command.1.tlog +10 -0
- package/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/CustomBuild.read.1.tlog +27 -0
- package/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/CustomBuild.write.1.tlog +2 -0
- package/build/x64/Release/ZERO_CHECK/ZERO_CHECK.recipe +11 -0
- package/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.command.1.tlog +10 -0
- package/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.read.1.tlog +28 -0
- package/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.write.1.tlog +2 -0
- package/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/ZERO_CHECK.lastbuildstate +2 -0
- package/package.json +14 -0
- package/src/call.hh +27 -0
- package/src/call_arm64.cc +482 -0
- package/src/call_arm64_fwd.S +115 -0
- package/src/call_x64_sysv.cc +477 -0
- package/src/call_x64_sysv_fwd.S +131 -0
- package/src/call_x64_win.cc +243 -0
- package/src/call_x64_win_fwd.asm +105 -0
- package/src/call_x86.cc +259 -0
- package/src/call_x86_fwd.S +48 -0
- package/src/call_x86_fwd.asm +50 -0
- package/src/ffi.cc +504 -0
- package/src/ffi.hh +135 -0
- package/src/util.cc +296 -0
- package/src/util.hh +80 -0
package/CMakeLists.txt
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# This program is free software: you can redistribute it and/or modify
|
|
2
|
+
# it under the terms of the GNU Affero General Public License as published by
|
|
3
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
4
|
+
# (at your option) any later version.
|
|
5
|
+
#
|
|
6
|
+
# This program is distributed in the hope that it will be useful,
|
|
7
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
+
# GNU Affero General Public License for more details.
|
|
10
|
+
#
|
|
11
|
+
# You should have received a copy of the GNU Affero General Public License
|
|
12
|
+
# along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
|
+
|
|
14
|
+
cmake_minimum_required(VERSION 3.11)
|
|
15
|
+
project(koffi C CXX ASM)
|
|
16
|
+
|
|
17
|
+
set(CMAKE_CXX_STANDARD 17)
|
|
18
|
+
if(MSVC)
|
|
19
|
+
enable_language(ASM_MASM)
|
|
20
|
+
endif()
|
|
21
|
+
|
|
22
|
+
# Koffi
|
|
23
|
+
# ----------------------
|
|
24
|
+
|
|
25
|
+
set(KOFFI_SRC
|
|
26
|
+
src/call_arm64.cc
|
|
27
|
+
src/call_x64_sysv.cc
|
|
28
|
+
src/call_x64_win.cc
|
|
29
|
+
src/call_x86.cc
|
|
30
|
+
src/ffi.cc
|
|
31
|
+
src/util.cc
|
|
32
|
+
../vendor/libcc/libcc.cc
|
|
33
|
+
)
|
|
34
|
+
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
35
|
+
if(WIN32)
|
|
36
|
+
list(APPEND KOFFI_SRC src/call_x64_win_fwd.asm)
|
|
37
|
+
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL aarch64)
|
|
38
|
+
list(APPEND KOFFI_SRC src/call_arm64_fwd.S)
|
|
39
|
+
else()
|
|
40
|
+
list(APPEND KOFFI_SRC src/call_x64_sysv_fwd.S)
|
|
41
|
+
endif()
|
|
42
|
+
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
43
|
+
if(WIN32)
|
|
44
|
+
list(APPEND KOFFI_SRC src/call_x86_fwd.asm)
|
|
45
|
+
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "i[3456]86|x86|AMD64")
|
|
46
|
+
list(APPEND KOFFI_SRC src/call_x86_fwd.S)
|
|
47
|
+
endif()
|
|
48
|
+
endif()
|
|
49
|
+
|
|
50
|
+
add_library(koffi SHARED ${KOFFI_SRC} ${CMAKE_JS_SRC})
|
|
51
|
+
set_target_properties(koffi PROPERTIES PREFIX "" SUFFIX ".node")
|
|
52
|
+
target_include_directories(koffi PRIVATE .. ${CMAKE_JS_INC} ../vendor/node-addon-api)
|
|
53
|
+
target_link_libraries(koffi PRIVATE ${CMAKE_JS_LIB})
|
|
54
|
+
|
|
55
|
+
if(WIN32)
|
|
56
|
+
target_compile_definitions(koffi PRIVATE _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_DEPRECATE)
|
|
57
|
+
target_link_libraries(koffi PRIVATE ws2_32)
|
|
58
|
+
endif()
|
|
59
|
+
if(MSVC)
|
|
60
|
+
target_compile_options(koffi PRIVATE /wd4200)
|
|
61
|
+
else()
|
|
62
|
+
target_compile_options(koffi PRIVATE -Wno-missing-field-initializers)
|
|
63
|
+
endif()
|
|
64
|
+
|
|
65
|
+
# Raylib
|
|
66
|
+
# ----------------------
|
|
67
|
+
|
|
68
|
+
add_library(Raylib SHARED
|
|
69
|
+
../vendor/raylib/src/rcore.c
|
|
70
|
+
../vendor/raylib/src/rshapes.c
|
|
71
|
+
../vendor/raylib/src/rtextures.c
|
|
72
|
+
../vendor/raylib/src/rtext.c
|
|
73
|
+
../vendor/raylib/src/rmodels.c
|
|
74
|
+
../vendor/raylib/src/utils.c
|
|
75
|
+
../vendor/raylib/src/rglfw.c
|
|
76
|
+
../vendor/raylib/src/raudio.c
|
|
77
|
+
)
|
|
78
|
+
set_target_properties(Raylib PROPERTIES PREFIX "")
|
|
79
|
+
target_include_directories(Raylib PRIVATE ${CMAKE_JS_INC} ../vendor/raylib/src/external/glfw/include)
|
|
80
|
+
target_compile_definitions(Raylib PRIVATE PLATFORM_DESKTOP GRAPHICS_API_OPENGL_21
|
|
81
|
+
BUILD_LIBTYPE_SHARED NDEBUG)
|
|
82
|
+
|
|
83
|
+
if(WIN32)
|
|
84
|
+
target_compile_definitions(Raylib PRIVATE _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_DEPRECATE)
|
|
85
|
+
target_link_libraries(Raylib PRIVATE winmm)
|
|
86
|
+
endif()
|
|
87
|
+
if(MSVC)
|
|
88
|
+
target_compile_options(Raylib PRIVATE /wd4244 /wd4305)
|
|
89
|
+
else()
|
|
90
|
+
target_compile_options(Raylib PRIVATE -Wno-sign-compare -Wno-old-style-declaration
|
|
91
|
+
-Wno-unused-function -Wno-missing-field-initializers
|
|
92
|
+
-Wno-unused-value -Wno-implicit-fallthrough -Wno-stringop-overflow
|
|
93
|
+
-Wno-unused-result)
|
|
94
|
+
endif()
|
package/README.md
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# Introduction
|
|
2
|
+
|
|
3
|
+
koffi is a fast and easy-to-use FFI module for Node.js, with support for complex data types such as structs.
|
|
4
|
+
|
|
5
|
+
The following platforms are supported at the moment:
|
|
6
|
+
* Windows x86 *(cdecl, stdcall)*
|
|
7
|
+
* Windows x86_64
|
|
8
|
+
* Linux x86
|
|
9
|
+
* Linux x86_64
|
|
10
|
+
* Linux AArch64
|
|
11
|
+
|
|
12
|
+
This is still in development, more platforms and more tests will come in the near future.
|
|
13
|
+
|
|
14
|
+
# Installation
|
|
15
|
+
|
|
16
|
+
## Windows
|
|
17
|
+
|
|
18
|
+
First, make sure the following dependencies are met:
|
|
19
|
+
|
|
20
|
+
* The "Desktop development with C++" workload from [Visual Studio 2022 or 2019](https://visualstudio.microsoft.com/downloads/) or the "C++ build tools" workload from the [Build Tools](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022), with the default optional components.
|
|
21
|
+
* [CMake meta build system](https://cmake.org/)
|
|
22
|
+
* [Node 16 LTS](https://nodejs.org/), but a newer version should work too
|
|
23
|
+
|
|
24
|
+
Once this is done, run this command from the project root:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
npm install
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Other platforms (Linux, macOS, etc.)
|
|
31
|
+
|
|
32
|
+
Make sure the following dependencies are met:
|
|
33
|
+
|
|
34
|
+
* `gcc` and `g++` >= 8.3 or newer
|
|
35
|
+
* GNU Make 3.81 or newer
|
|
36
|
+
* [CMake meta build system](https://cmake.org/)
|
|
37
|
+
|
|
38
|
+
Once these dependencies are met, simply run the follow command:
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
npm install
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
# How to use
|
|
45
|
+
|
|
46
|
+
This section assumes you know how to build C shared libraries.
|
|
47
|
+
|
|
48
|
+
This examples illustrates how to use koffi with a Raylib shared library:
|
|
49
|
+
|
|
50
|
+
```js
|
|
51
|
+
const koffi = require('koffi/build/Release/koffi.node');
|
|
52
|
+
|
|
53
|
+
const Color = koffi.struct('Color', {
|
|
54
|
+
r: 'uchar',
|
|
55
|
+
g: 'uchar',
|
|
56
|
+
b: 'uchar',
|
|
57
|
+
a: 'uchar'
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
const Image = koffi.struct('Image', {
|
|
61
|
+
data: koffi.pointer('void'),
|
|
62
|
+
width: 'int',
|
|
63
|
+
height: 'int',
|
|
64
|
+
mipmaps: 'int',
|
|
65
|
+
format: 'int'
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const GlyphInfo = koffi.struct('GlyphInfo', {
|
|
69
|
+
value: 'int',
|
|
70
|
+
offsetX: 'int',
|
|
71
|
+
offsetY: 'int',
|
|
72
|
+
advanceX: 'int',
|
|
73
|
+
image: Image
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
const Vector2 = koffi.struct('Vector2', {
|
|
77
|
+
x: 'float',
|
|
78
|
+
y: 'float'
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
const Rectangle = koffi.struct('Rectangle', {
|
|
82
|
+
x: 'float',
|
|
83
|
+
y: 'float',
|
|
84
|
+
width: 'float',
|
|
85
|
+
height: 'float'
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
const Texture = koffi.struct('Texture', {
|
|
89
|
+
id: 'uint',
|
|
90
|
+
width: 'int',
|
|
91
|
+
height: 'int',
|
|
92
|
+
mipmaps: 'int',
|
|
93
|
+
format: 'int'
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
const Font = koffi.struct('Font', {
|
|
97
|
+
baseSize: 'int',
|
|
98
|
+
glyphCount: 'int',
|
|
99
|
+
glyphPadding: 'int',
|
|
100
|
+
texture: Texture,
|
|
101
|
+
recs: koffi.pointer(Rectangle),
|
|
102
|
+
glyphs: koffi.pointer(GlyphInfo)
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
// Fix the path to Raylib DLL
|
|
106
|
+
let raylib = koffi.load('Raylib.dll', {
|
|
107
|
+
InitWindow: ['void', ['int', 'int', 'string']],
|
|
108
|
+
SetTargetFPS: ['void', ['int']],
|
|
109
|
+
GetScreenWidth: ['int', []],
|
|
110
|
+
GetScreenHeight: ['int', []],
|
|
111
|
+
ClearBackground: ['void', [Color]],
|
|
112
|
+
BeginDrawing: ['void', []],
|
|
113
|
+
EndDrawing: ['void', []],
|
|
114
|
+
WindowShouldClose: ['bool', []],
|
|
115
|
+
GetFontDefault: [Font, []],
|
|
116
|
+
MeasureTextEx: [Vector2, [Font, 'string', 'float', 'float']],
|
|
117
|
+
DrawTextEx: ['void', [Font, 'string', Vector2, 'float', 'float', Color]]
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
raylib.InitWindow(800, 600, 'Test Raylib');
|
|
121
|
+
raylib.SetTargetFPS(60);
|
|
122
|
+
|
|
123
|
+
let angle = 0;
|
|
124
|
+
|
|
125
|
+
while (!raylib.WindowShouldClose()) {
|
|
126
|
+
raylib.BeginDrawing();
|
|
127
|
+
raylib.ClearBackground({ r: 0, g: 0, b: 0, a: 255 }); // black
|
|
128
|
+
|
|
129
|
+
let win_width = raylib.GetScreenWidth();
|
|
130
|
+
let win_height = raylib.GetScreenHeight();
|
|
131
|
+
|
|
132
|
+
let text = 'Hello World!';
|
|
133
|
+
let text_width = raylib.MeasureTextEx(raylib.GetFontDefault(), text, 32, 1).x;
|
|
134
|
+
|
|
135
|
+
let color = {
|
|
136
|
+
r: 127.5 + 127.5 * Math.sin(angle),
|
|
137
|
+
g: 127.5 + 127.5 * Math.sin(angle + Math.PI / 2),
|
|
138
|
+
b: 127.5 + 127.5 * Math.sin(angle + Math.PI),
|
|
139
|
+
a: 255
|
|
140
|
+
};
|
|
141
|
+
let pos = {
|
|
142
|
+
x: (win_width / 2 - text_width / 2) + 120 * Math.cos(angle - Math.PI / 2),
|
|
143
|
+
y: (win_height / 2 - 16) + 120 * Math.sin(angle - Math.PI / 2)
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
raylib.DrawTextEx(raylib.GetFontDefault(), text, pos, 32, 1, color);
|
|
147
|
+
|
|
148
|
+
raylib.EndDrawing();
|
|
149
|
+
|
|
150
|
+
angle += Math.PI / 180;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
```
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<Project DefaultTargets="Build" ToolsVersion="16.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
+
<PropertyGroup>
|
|
4
|
+
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
|
|
5
|
+
</PropertyGroup>
|
|
6
|
+
<PropertyGroup>
|
|
7
|
+
<ResolveNugetPackages>false</ResolveNugetPackages>
|
|
8
|
+
</PropertyGroup>
|
|
9
|
+
<ItemGroup Label="ProjectConfigurations">
|
|
10
|
+
<ProjectConfiguration Include="Debug|x64">
|
|
11
|
+
<Configuration>Debug</Configuration>
|
|
12
|
+
<Platform>x64</Platform>
|
|
13
|
+
</ProjectConfiguration>
|
|
14
|
+
<ProjectConfiguration Include="Release|x64">
|
|
15
|
+
<Configuration>Release</Configuration>
|
|
16
|
+
<Platform>x64</Platform>
|
|
17
|
+
</ProjectConfiguration>
|
|
18
|
+
<ProjectConfiguration Include="MinSizeRel|x64">
|
|
19
|
+
<Configuration>MinSizeRel</Configuration>
|
|
20
|
+
<Platform>x64</Platform>
|
|
21
|
+
</ProjectConfiguration>
|
|
22
|
+
<ProjectConfiguration Include="RelWithDebInfo|x64">
|
|
23
|
+
<Configuration>RelWithDebInfo</Configuration>
|
|
24
|
+
<Platform>x64</Platform>
|
|
25
|
+
</ProjectConfiguration>
|
|
26
|
+
</ItemGroup>
|
|
27
|
+
<PropertyGroup Label="Globals">
|
|
28
|
+
<ProjectGuid>{5BE56245-76AE-3E31-B7E8-D2E7C4DF6895}</ProjectGuid>
|
|
29
|
+
<Keyword>Win32Proj</Keyword>
|
|
30
|
+
<WindowsTargetPlatformVersion>10.0.19041.0</WindowsTargetPlatformVersion>
|
|
31
|
+
<Platform>x64</Platform>
|
|
32
|
+
<ProjectName>ALL_BUILD</ProjectName>
|
|
33
|
+
<VCProjectUpgraderObjectName>NoUpgrade</VCProjectUpgraderObjectName>
|
|
34
|
+
</PropertyGroup>
|
|
35
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
36
|
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
37
|
+
<ConfigurationType>Utility</ConfigurationType>
|
|
38
|
+
<CharacterSet>MultiByte</CharacterSet>
|
|
39
|
+
<PlatformToolset>v142</PlatformToolset>
|
|
40
|
+
</PropertyGroup>
|
|
41
|
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
42
|
+
<ConfigurationType>Utility</ConfigurationType>
|
|
43
|
+
<CharacterSet>MultiByte</CharacterSet>
|
|
44
|
+
<PlatformToolset>v142</PlatformToolset>
|
|
45
|
+
</PropertyGroup>
|
|
46
|
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'" Label="Configuration">
|
|
47
|
+
<ConfigurationType>Utility</ConfigurationType>
|
|
48
|
+
<CharacterSet>MultiByte</CharacterSet>
|
|
49
|
+
<PlatformToolset>v142</PlatformToolset>
|
|
50
|
+
</PropertyGroup>
|
|
51
|
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'" Label="Configuration">
|
|
52
|
+
<ConfigurationType>Utility</ConfigurationType>
|
|
53
|
+
<CharacterSet>MultiByte</CharacterSet>
|
|
54
|
+
<PlatformToolset>v142</PlatformToolset>
|
|
55
|
+
</PropertyGroup>
|
|
56
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
57
|
+
<ImportGroup Label="ExtensionSettings">
|
|
58
|
+
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.props" />
|
|
59
|
+
</ImportGroup>
|
|
60
|
+
<ImportGroup Label="PropertySheets">
|
|
61
|
+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
62
|
+
</ImportGroup>
|
|
63
|
+
<PropertyGroup Label="UserMacros" />
|
|
64
|
+
<PropertyGroup>
|
|
65
|
+
<_ProjectFileVersion>10.0.20506.1</_ProjectFileVersion>
|
|
66
|
+
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
|
|
67
|
+
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
|
|
68
|
+
<IntDir Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
|
|
69
|
+
<IntDir Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
|
|
70
|
+
</PropertyGroup>
|
|
71
|
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
72
|
+
<Midl>
|
|
73
|
+
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
74
|
+
<OutputDirectory>$(ProjectDir)/$(IntDir)</OutputDirectory>
|
|
75
|
+
<HeaderFileName>%(Filename).h</HeaderFileName>
|
|
76
|
+
<TypeLibraryName>%(Filename).tlb</TypeLibraryName>
|
|
77
|
+
<InterfaceIdentifierFileName>%(Filename)_i.c</InterfaceIdentifierFileName>
|
|
78
|
+
<ProxyFileName>%(Filename)_p.c</ProxyFileName>
|
|
79
|
+
</Midl>
|
|
80
|
+
</ItemDefinitionGroup>
|
|
81
|
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
82
|
+
<Midl>
|
|
83
|
+
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
84
|
+
<OutputDirectory>$(ProjectDir)/$(IntDir)</OutputDirectory>
|
|
85
|
+
<HeaderFileName>%(Filename).h</HeaderFileName>
|
|
86
|
+
<TypeLibraryName>%(Filename).tlb</TypeLibraryName>
|
|
87
|
+
<InterfaceIdentifierFileName>%(Filename)_i.c</InterfaceIdentifierFileName>
|
|
88
|
+
<ProxyFileName>%(Filename)_p.c</ProxyFileName>
|
|
89
|
+
</Midl>
|
|
90
|
+
</ItemDefinitionGroup>
|
|
91
|
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">
|
|
92
|
+
<Midl>
|
|
93
|
+
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
94
|
+
<OutputDirectory>$(ProjectDir)/$(IntDir)</OutputDirectory>
|
|
95
|
+
<HeaderFileName>%(Filename).h</HeaderFileName>
|
|
96
|
+
<TypeLibraryName>%(Filename).tlb</TypeLibraryName>
|
|
97
|
+
<InterfaceIdentifierFileName>%(Filename)_i.c</InterfaceIdentifierFileName>
|
|
98
|
+
<ProxyFileName>%(Filename)_p.c</ProxyFileName>
|
|
99
|
+
</Midl>
|
|
100
|
+
</ItemDefinitionGroup>
|
|
101
|
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">
|
|
102
|
+
<Midl>
|
|
103
|
+
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
104
|
+
<OutputDirectory>$(ProjectDir)/$(IntDir)</OutputDirectory>
|
|
105
|
+
<HeaderFileName>%(Filename).h</HeaderFileName>
|
|
106
|
+
<TypeLibraryName>%(Filename).tlb</TypeLibraryName>
|
|
107
|
+
<InterfaceIdentifierFileName>%(Filename)_i.c</InterfaceIdentifierFileName>
|
|
108
|
+
<ProxyFileName>%(Filename)_p.c</ProxyFileName>
|
|
109
|
+
</Midl>
|
|
110
|
+
</ItemDefinitionGroup>
|
|
111
|
+
<ItemGroup>
|
|
112
|
+
<CustomBuild Include="C:\Users\Niels\Code\luigi\koffi\CMakeLists.txt">
|
|
113
|
+
<UseUtf8Encoding>Always</UseUtf8Encoding>
|
|
114
|
+
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Building Custom Rule C:/Users/Niels/Code/luigi/koffi/CMakeLists.txt</Message>
|
|
115
|
+
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">setlocal
|
|
116
|
+
"C:\Program Files\CMake\bin\cmake.exe" -SC:/Users/Niels/Code/luigi/koffi -BC:/Users/Niels/Code/luigi/koffi/build --check-stamp-file C:/Users/Niels/Code/luigi/koffi/build/CMakeFiles/generate.stamp
|
|
117
|
+
if %errorlevel% neq 0 goto :cmEnd
|
|
118
|
+
:cmEnd
|
|
119
|
+
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
|
|
120
|
+
:cmErrorLevel
|
|
121
|
+
exit /b %1
|
|
122
|
+
:cmDone
|
|
123
|
+
if %errorlevel% neq 0 goto :VCEnd</Command>
|
|
124
|
+
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeASMInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeASM_MASMInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCXXInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCommonLanguageInclude.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeGenericSystem.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeInitializeConfigs.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeLanguageInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeRCInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeSystemSpecificInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeSystemSpecificInitialize.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Compiler\CMakeCommonCompilerMacros.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Compiler\MSVC-ASM.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Compiler\MSVC-C.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Compiler\MSVC-CXX.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\Windows-MSVC-C.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\Windows-MSVC-CXX.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\Windows-MSVC.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\Windows.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\WindowsPaths.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeASMCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeASM_MASMCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeCCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeCXXCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeRCCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeSystem.cmake;%(AdditionalInputs)</AdditionalInputs>
|
|
125
|
+
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\generate.stamp</Outputs>
|
|
126
|
+
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkObjects>
|
|
127
|
+
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Building Custom Rule C:/Users/Niels/Code/luigi/koffi/CMakeLists.txt</Message>
|
|
128
|
+
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">setlocal
|
|
129
|
+
"C:\Program Files\CMake\bin\cmake.exe" -SC:/Users/Niels/Code/luigi/koffi -BC:/Users/Niels/Code/luigi/koffi/build --check-stamp-file C:/Users/Niels/Code/luigi/koffi/build/CMakeFiles/generate.stamp
|
|
130
|
+
if %errorlevel% neq 0 goto :cmEnd
|
|
131
|
+
:cmEnd
|
|
132
|
+
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
|
|
133
|
+
:cmErrorLevel
|
|
134
|
+
exit /b %1
|
|
135
|
+
:cmDone
|
|
136
|
+
if %errorlevel% neq 0 goto :VCEnd</Command>
|
|
137
|
+
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeASMInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeASM_MASMInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCXXInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCommonLanguageInclude.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeGenericSystem.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeInitializeConfigs.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeLanguageInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeRCInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeSystemSpecificInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeSystemSpecificInitialize.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Compiler\CMakeCommonCompilerMacros.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Compiler\MSVC-ASM.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Compiler\MSVC-C.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Compiler\MSVC-CXX.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\Windows-MSVC-C.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\Windows-MSVC-CXX.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\Windows-MSVC.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\Windows.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\WindowsPaths.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeASMCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeASM_MASMCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeCCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeCXXCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeRCCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeSystem.cmake;%(AdditionalInputs)</AdditionalInputs>
|
|
138
|
+
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\generate.stamp</Outputs>
|
|
139
|
+
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkObjects>
|
|
140
|
+
<Message Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">Building Custom Rule C:/Users/Niels/Code/luigi/koffi/CMakeLists.txt</Message>
|
|
141
|
+
<Command Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">setlocal
|
|
142
|
+
"C:\Program Files\CMake\bin\cmake.exe" -SC:/Users/Niels/Code/luigi/koffi -BC:/Users/Niels/Code/luigi/koffi/build --check-stamp-file C:/Users/Niels/Code/luigi/koffi/build/CMakeFiles/generate.stamp
|
|
143
|
+
if %errorlevel% neq 0 goto :cmEnd
|
|
144
|
+
:cmEnd
|
|
145
|
+
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
|
|
146
|
+
:cmErrorLevel
|
|
147
|
+
exit /b %1
|
|
148
|
+
:cmDone
|
|
149
|
+
if %errorlevel% neq 0 goto :VCEnd</Command>
|
|
150
|
+
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeASMInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeASM_MASMInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCXXInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCommonLanguageInclude.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeGenericSystem.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeInitializeConfigs.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeLanguageInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeRCInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeSystemSpecificInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeSystemSpecificInitialize.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Compiler\CMakeCommonCompilerMacros.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Compiler\MSVC-ASM.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Compiler\MSVC-C.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Compiler\MSVC-CXX.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\Windows-MSVC-C.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\Windows-MSVC-CXX.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\Windows-MSVC.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\Windows.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\WindowsPaths.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeASMCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeASM_MASMCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeCCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeCXXCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeRCCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeSystem.cmake;%(AdditionalInputs)</AdditionalInputs>
|
|
151
|
+
<Outputs Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\generate.stamp</Outputs>
|
|
152
|
+
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">false</LinkObjects>
|
|
153
|
+
<Message Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">Building Custom Rule C:/Users/Niels/Code/luigi/koffi/CMakeLists.txt</Message>
|
|
154
|
+
<Command Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">setlocal
|
|
155
|
+
"C:\Program Files\CMake\bin\cmake.exe" -SC:/Users/Niels/Code/luigi/koffi -BC:/Users/Niels/Code/luigi/koffi/build --check-stamp-file C:/Users/Niels/Code/luigi/koffi/build/CMakeFiles/generate.stamp
|
|
156
|
+
if %errorlevel% neq 0 goto :cmEnd
|
|
157
|
+
:cmEnd
|
|
158
|
+
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
|
|
159
|
+
:cmErrorLevel
|
|
160
|
+
exit /b %1
|
|
161
|
+
:cmDone
|
|
162
|
+
if %errorlevel% neq 0 goto :VCEnd</Command>
|
|
163
|
+
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeASMInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeASM_MASMInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCXXInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCommonLanguageInclude.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeGenericSystem.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeInitializeConfigs.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeLanguageInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeRCInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeSystemSpecificInformation.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeSystemSpecificInitialize.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Compiler\CMakeCommonCompilerMacros.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Compiler\MSVC-ASM.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Compiler\MSVC-C.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Compiler\MSVC-CXX.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\Windows-MSVC-C.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\Windows-MSVC-CXX.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\Windows-MSVC.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\Windows.cmake;C:\Program Files\CMake\share\cmake-3.23\Modules\Platform\WindowsPaths.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeASMCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeASM_MASMCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeCCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeCXXCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeRCCompiler.cmake;C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\3.23.0-rc1\CMakeSystem.cmake;%(AdditionalInputs)</AdditionalInputs>
|
|
164
|
+
<Outputs Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">C:\Users\Niels\Code\luigi\koffi\build\CMakeFiles\generate.stamp</Outputs>
|
|
165
|
+
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">false</LinkObjects>
|
|
166
|
+
</CustomBuild>
|
|
167
|
+
</ItemGroup>
|
|
168
|
+
<ItemGroup>
|
|
169
|
+
</ItemGroup>
|
|
170
|
+
<ItemGroup>
|
|
171
|
+
<ProjectReference Include="C:\Users\Niels\Code\luigi\koffi\build\ZERO_CHECK.vcxproj">
|
|
172
|
+
<Project>{88D8D3DA-3A05-3927-9D00-34B7FC393341}</Project>
|
|
173
|
+
<Name>ZERO_CHECK</Name>
|
|
174
|
+
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
|
175
|
+
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
|
176
|
+
</ProjectReference>
|
|
177
|
+
<ProjectReference Include="C:\Users\Niels\Code\luigi\koffi\build\Raylib.vcxproj">
|
|
178
|
+
<Project>{1144E8A1-9651-34E9-B43F-5C6B60F11699}</Project>
|
|
179
|
+
<Name>Raylib</Name>
|
|
180
|
+
</ProjectReference>
|
|
181
|
+
<ProjectReference Include="C:\Users\Niels\Code\luigi\koffi\build\koffi.vcxproj">
|
|
182
|
+
<Project>{CFDA8F0F-5168-3E8E-8779-698AF1761172}</Project>
|
|
183
|
+
<Name>koffi</Name>
|
|
184
|
+
</ProjectReference>
|
|
185
|
+
</ItemGroup>
|
|
186
|
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
187
|
+
<ImportGroup Label="ExtensionTargets">
|
|
188
|
+
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" />
|
|
189
|
+
</ImportGroup>
|
|
190
|
+
</Project>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<Project ToolsVersion="16.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
+
<ItemGroup>
|
|
4
|
+
<CustomBuild Include="C:\Users\Niels\Code\luigi\koffi\CMakeLists.txt" />
|
|
5
|
+
</ItemGroup>
|
|
6
|
+
<ItemGroup>
|
|
7
|
+
</ItemGroup>
|
|
8
|
+
</Project>
|