koffi 0.9.8 → 0.9.9
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/build/koffi.node +0 -0
- package/package.json +4 -1
- package/src/ffi.cc +1 -1
- package/test/registry/machines.json +12 -6
- package/test/test.js +10 -2
- package/test/tests/sqlite.js +101 -0
- package/vendor/raylib/projects/VS2019/examples/audio_module_playing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/audio_multichannel_sound.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/audio_music_stream.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/audio_raw_stream.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/audio_sound_loading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_2d_camera.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_2d_camera_platformer.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_3d_camera_first_person.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_3d_camera_free.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_3d_camera_mode.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_3d_picking.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_basic_window.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_custom_logging.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_drop_files.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_input_gamepad.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_input_gestures.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_input_keys.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_input_mouse.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_input_mouse_wheel.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_input_multitouch.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_loading_thread.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_quat_conversion.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_random_values.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_scissor_test.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_split_screen.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_storage_values.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_vr_simulator.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_window_flags.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_window_letterbox.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/core_world_screen.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/easings_testbed.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/embedded_files_loading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_animation.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_billboard.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_box_collisions.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_cubicmap.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_first_person_maze.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_geometric_shapes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_heightmap.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_loading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_loading_gltf.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_loading_vox.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_mesh_generation.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_mesh_picking.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_orthographic_projection.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_rlgl_solar_system.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_skybox.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_waving_cubes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/models_yaw_pitch_roll.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/physics_demo.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/physics_friction.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/physics_movement.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/physics_restitution.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/physics_shatter.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/raudio_standalone.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/rlgl_standalone.vcxproj +0 -391
- package/vendor/raylib/projects/VS2019/examples/shaders_basic_lighting.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shaders_custom_uniform.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shaders_eratosthenes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shaders_fog.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shaders_hot_reloading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shaders_julia_set.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shaders_mesh_instancing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shaders_model_shader.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shaders_multi_sample2d.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shaders_palette_switch.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shaders_postprocessing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shaders_raymarching.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shaders_shapes_textures.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shaders_simple_mask.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shaders_spotlight.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shaders_texture_drawing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shaders_texture_waves.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shapes_basic_shapes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shapes_bouncing_ball.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shapes_collision_area.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shapes_colors_palette.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shapes_draw_circle_sector.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shapes_draw_rectangle_rounded.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shapes_draw_ring.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shapes_easings_ball_anim.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shapes_easings_box_anim.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shapes_easings_rectangle_array.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shapes_following_eyes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shapes_lines_bezier.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shapes_logo_raylib.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shapes_logo_raylib_anim.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/shapes_rectangle_scaling.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/text_font_filters.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/text_font_loading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/text_font_sdf.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/text_font_spritefont.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/text_format_text.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/text_input_box.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/text_raylib_fonts.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/text_rectangle_bounds.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/text_unicode.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/text_writing_anim.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_background_scrolling.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_blend_modes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_bunnymark.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_draw_tiled.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_image_drawing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_image_generation.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_image_loading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_image_processing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_image_text.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_logo_raylib.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_mouse_painting.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_npatch_drawing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_particles_blending.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_raw_data.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_rectangle.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_sprite_button.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_sprite_explosion.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_srcrec_dstrec.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/examples/textures_to_image.vcxproj +0 -387
- package/vendor/raylib/projects/VS2019/raylib/raylib.vcxproj +0 -341
- package/vendor/raylib/projects/VS2019/raylib.sln +0 -2274
- package/vendor/raylib/projects/VS2019-Android/raylib_android/raylib_android.NativeActivity/raylib_android.NativeActivity.vcxproj +0 -226
- package/vendor/raylib/projects/VS2019-Android/raylib_android/raylib_android.NativeActivity/raylib_android.NativeActivity.vcxproj.filters +0 -10
- package/vendor/raylib/projects/VS2019-Android/raylib_android/raylib_android.NativeActivity/raylib_android.NativeActivity.vcxproj.user +0 -4
- package/vendor/raylib/projects/VS2019-Android/raylib_android.sln +0 -75
package/build/koffi.node
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koffi",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.9",
|
|
4
4
|
"description": "Fast and simple FFI (foreign function interface) for Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"foreign",
|
|
@@ -22,6 +22,9 @@
|
|
|
22
22
|
"test": "node test/test.js"
|
|
23
23
|
},
|
|
24
24
|
"license": "AGPL-3.0",
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"cnoke": "^0.9.22"
|
|
27
|
+
},
|
|
25
28
|
"devDependencies": {
|
|
26
29
|
"chalk": "^4.1.2",
|
|
27
30
|
"node-ssh": "^12.0.3"
|
package/src/ffi.cc
CHANGED
|
@@ -166,7 +166,7 @@ static Napi::Value CreateHandleType(const Napi::CallbackInfo &info)
|
|
|
166
166
|
{
|
|
167
167
|
RecordMember member = {};
|
|
168
168
|
|
|
169
|
-
member.name = "
|
|
169
|
+
member.name = "value";
|
|
170
170
|
member.type = instance->types_map.FindValue("void *", nullptr);
|
|
171
171
|
RG_ASSERT(member.type);
|
|
172
172
|
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
"build": "npm install --production",
|
|
28
28
|
"commands": {
|
|
29
29
|
"Test Raylib": "xvfb-run node test/tests/raylib.js",
|
|
30
|
-
"Test Misc": "node test/tests/misc.js"
|
|
30
|
+
"Test Misc": "node test/tests/misc.js",
|
|
31
|
+
"Test SQLite": "node test/tests/sqlite.js"
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
}
|
|
@@ -61,7 +62,8 @@
|
|
|
61
62
|
"build": "npm install --production",
|
|
62
63
|
"commands": {
|
|
63
64
|
"Test Raylib": "xvfb-run node test/tests/raylib.js",
|
|
64
|
-
"Test Misc": "node test/tests/misc.js"
|
|
65
|
+
"Test Misc": "node test/tests/misc.js",
|
|
66
|
+
"Test SQLite": "node test/tests/sqlite.js"
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
69
|
}
|
|
@@ -95,7 +97,8 @@
|
|
|
95
97
|
"build": "npm install --production",
|
|
96
98
|
"commands": {
|
|
97
99
|
"Test Raylib": "xvfb-run node test/tests/raylib.js",
|
|
98
|
-
"Test Misc": "node test/tests/misc.js"
|
|
100
|
+
"Test Misc": "node test/tests/misc.js",
|
|
101
|
+
"Test SQLite": "node test/tests/sqlite.js"
|
|
99
102
|
}
|
|
100
103
|
}
|
|
101
104
|
}
|
|
@@ -129,7 +132,8 @@
|
|
|
129
132
|
"build": "npm install --production",
|
|
130
133
|
"commands": {
|
|
131
134
|
"Test Raylib": "xvfb-run node test/tests/raylib.js",
|
|
132
|
-
"Test Misc": "node test/tests/misc.js"
|
|
135
|
+
"Test Misc": "node test/tests/misc.js",
|
|
136
|
+
"Test SQLite": "node test/tests/sqlite.js"
|
|
133
137
|
}
|
|
134
138
|
}
|
|
135
139
|
}
|
|
@@ -168,7 +172,8 @@
|
|
|
168
172
|
"build": "C:\\Node32\\node32.cmd npm install --production",
|
|
169
173
|
"commands": {
|
|
170
174
|
"Test Raylib": "seatsh C:\\Node32\\node32.cmd node test/tests/raylib.js",
|
|
171
|
-
"Test Misc": "C:\\Node32\\node32.cmd node test/tests/misc.js"
|
|
175
|
+
"Test Misc": "C:\\Node32\\node32.cmd node test/tests/misc.js",
|
|
176
|
+
"Test SQLite": "C:\\Node32\\node32.cmd node test/tests/sqlite.js"
|
|
172
177
|
}
|
|
173
178
|
},
|
|
174
179
|
|
|
@@ -177,7 +182,8 @@
|
|
|
177
182
|
"build": "C:\\Node64\\node64.cmd npm install --production",
|
|
178
183
|
"commands": {
|
|
179
184
|
"Test Raylib": "seatsh C:\\Node64\\node64.cmd node test/tests/raylib.js",
|
|
180
|
-
"Test Misc": "C:\\Node64\\node64.cmd node test/tests/misc.js"
|
|
185
|
+
"Test Misc": "C:\\Node64\\node64.cmd node test/tests/misc.js",
|
|
186
|
+
"Test SQLite": "C:\\Node64\\node64.cmd node test/tests/sqlite.js"
|
|
181
187
|
}
|
|
182
188
|
}
|
|
183
189
|
}
|
package/test/test.js
CHANGED
|
@@ -107,6 +107,14 @@ async function main() {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
// Sanity checks
|
|
111
|
+
if (parseInt(process.versions.node, 10) < 16)
|
|
112
|
+
throw new Error('Please use Node version >= 16');
|
|
113
|
+
if (spawnSync('ssh', ['-V']).status !== 0)
|
|
114
|
+
throw new Error('Missing ssh binary in PATH');
|
|
115
|
+
if (spawnSync('sshpass', ['-V']).status !== 0)
|
|
116
|
+
throw new Error('Missing sshpass binary in PATH');
|
|
117
|
+
|
|
110
118
|
// Load machine registry
|
|
111
119
|
let machines_map;
|
|
112
120
|
{
|
|
@@ -414,7 +422,7 @@ async function ssh() {
|
|
|
414
422
|
let args = [
|
|
415
423
|
'-p' + machine.info.password,
|
|
416
424
|
'ssh', '-o', 'StrictHostKeyChecking=no',
|
|
417
|
-
'-o', 'UserKnownHostsFile=' + (process.platform == 'win32' ? 'NUL' : '/dev/null'),
|
|
425
|
+
'-o', 'UserKnownHostsFile=' + (process.platform == 'win32' ? '\\\\.\\NUL' : '/dev/null'),
|
|
418
426
|
'-p', machine.info.ssh_port, machine.info.username + '@127.0.0.1'
|
|
419
427
|
];
|
|
420
428
|
|
|
@@ -526,7 +534,7 @@ async function boot(machine, dirname, detach) {
|
|
|
526
534
|
|
|
527
535
|
if (machine.qemu.accelerate)
|
|
528
536
|
args.push('-accel', machine.qemu.accelerate);
|
|
529
|
-
args.push('-display', 'none');
|
|
537
|
+
// args.push('-display', 'none');
|
|
530
538
|
|
|
531
539
|
try {
|
|
532
540
|
let binary = qemu_prefix + machine.qemu.binary + (process.platform == 'win32' ? '.exe' : '');
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// This program is free software: you can redistribute it and/or modify
|
|
4
|
+
// it under the terms of the GNU Affero General Public License as published by
|
|
5
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
6
|
+
// (at your option) any later version.
|
|
7
|
+
//
|
|
8
|
+
// This program is distributed in the hope that it will be useful,
|
|
9
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+
// GNU Affero General Public License for more details.
|
|
12
|
+
//
|
|
13
|
+
// You should have received a copy of the GNU Affero General Public License
|
|
14
|
+
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
15
|
+
|
|
16
|
+
const crypto = require('crypto');
|
|
17
|
+
const koffi = require('../../build/koffi.node');
|
|
18
|
+
const assert = require('assert');
|
|
19
|
+
const fs = require('fs');
|
|
20
|
+
const os = require('os');
|
|
21
|
+
const path = require('path');
|
|
22
|
+
|
|
23
|
+
const sqlite3_db = koffi.handle('sqlite3_db');
|
|
24
|
+
const sqlite3_stmt = koffi.handle('sqlite3_stmt');
|
|
25
|
+
|
|
26
|
+
main();
|
|
27
|
+
|
|
28
|
+
async function main() {
|
|
29
|
+
try {
|
|
30
|
+
await test();
|
|
31
|
+
console.log('Success!');
|
|
32
|
+
} catch (err) {
|
|
33
|
+
console.error(err);
|
|
34
|
+
process.exit(1);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async function test() {
|
|
39
|
+
let lib_filename = path.dirname(__filename) + '/../../build/sqlite3' +
|
|
40
|
+
(process.platform == 'win32' ? '.dll' : '.so');
|
|
41
|
+
|
|
42
|
+
let sqlite3 = koffi.load(lib_filename, {
|
|
43
|
+
sqlite3_open_v2: ['int', ['string', koffi.out(koffi.pointer(sqlite3_db)), 'int', 'string']],
|
|
44
|
+
sqlite3_exec: ['int', [sqlite3_db, 'string', 'void *', 'void *', 'void *']],
|
|
45
|
+
sqlite3_prepare_v2: ['int', [sqlite3_db, 'string', 'int', koffi.out(koffi.pointer(sqlite3_stmt)), 'string']],
|
|
46
|
+
sqlite3_reset: ['int', [sqlite3_stmt]],
|
|
47
|
+
sqlite3_bind_text: ['int', [sqlite3_stmt, 'int', 'string', 'int', 'void *']],
|
|
48
|
+
sqlite3_bind_int: ['int', [sqlite3_stmt, 'int', 'int']],
|
|
49
|
+
sqlite3_step: ['int', [sqlite3_stmt]],
|
|
50
|
+
sqlite3_finalize: ['int', [sqlite3_stmt]],
|
|
51
|
+
sqlite3_close_v2: ['int', [sqlite3_db]]
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
let filename = create_temporary_file(path.join(os.tmpdir(), 'test_sqlite'));
|
|
55
|
+
let db = {};
|
|
56
|
+
|
|
57
|
+
try {
|
|
58
|
+
if (sqlite3.sqlite3_open_v2(filename, db, 0x2 | 0x4, null) != 0)
|
|
59
|
+
throw new Error('Failed to open database');
|
|
60
|
+
if (sqlite3.sqlite3_exec(db, 'CREATE TABLE foo (id INTEGER PRIMARY KEY, bar TEXT, value INT);', null, null, null) != 0)
|
|
61
|
+
throw new Error('Failed to create table');
|
|
62
|
+
|
|
63
|
+
let stmt = {};
|
|
64
|
+
if (sqlite3.sqlite3_prepare_v2(db, "INSERT INTO foo (bar, value) VALUES (?1, ?2)", -1, stmt, null) != 0)
|
|
65
|
+
throw new Error('Failed to prepare insert statement for table foo');
|
|
66
|
+
for (let i = 0; i < 200; i++) {
|
|
67
|
+
sqlite3.sqlite3_reset(stmt);
|
|
68
|
+
|
|
69
|
+
sqlite3.sqlite3_bind_text(stmt, 1, `TXT ${i}`, -1, null);
|
|
70
|
+
sqlite3.sqlite3_bind_int(stmt, 2, i * 2);
|
|
71
|
+
|
|
72
|
+
if (sqlite3.sqlite3_step(stmt) != 101)
|
|
73
|
+
throw new Erorr('Failed to insert new test row');
|
|
74
|
+
}
|
|
75
|
+
sqlite3.sqlite3_finalize(stmt);
|
|
76
|
+
} finally {
|
|
77
|
+
sqlite3.sqlite3_close_v2(db);
|
|
78
|
+
fs.unlinkSync(filename);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function create_temporary_file(prefix) {
|
|
83
|
+
let buf = Buffer.allocUnsafe(4);
|
|
84
|
+
|
|
85
|
+
for (;;) {
|
|
86
|
+
try {
|
|
87
|
+
crypto.randomFillSync(buf);
|
|
88
|
+
|
|
89
|
+
let suffix = buf.toString('hex').padStart(8, '0');
|
|
90
|
+
let filename = `${prefix}.${suffix}`;
|
|
91
|
+
|
|
92
|
+
let file = fs.createWriteStream(filename, { flags: 'wx', mode: 0o644 });
|
|
93
|
+
file.close();
|
|
94
|
+
|
|
95
|
+
return filename;
|
|
96
|
+
} catch (err) {
|
|
97
|
+
if (err.code != 'EEXIST')
|
|
98
|
+
throw err;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -1,387 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
-
<ItemGroup Label="ProjectConfigurations">
|
|
4
|
-
<ProjectConfiguration Include="Debug.DLL|Win32">
|
|
5
|
-
<Configuration>Debug.DLL</Configuration>
|
|
6
|
-
<Platform>Win32</Platform>
|
|
7
|
-
</ProjectConfiguration>
|
|
8
|
-
<ProjectConfiguration Include="Debug.DLL|x64">
|
|
9
|
-
<Configuration>Debug.DLL</Configuration>
|
|
10
|
-
<Platform>x64</Platform>
|
|
11
|
-
</ProjectConfiguration>
|
|
12
|
-
<ProjectConfiguration Include="Debug|Win32">
|
|
13
|
-
<Configuration>Debug</Configuration>
|
|
14
|
-
<Platform>Win32</Platform>
|
|
15
|
-
</ProjectConfiguration>
|
|
16
|
-
<ProjectConfiguration Include="Debug|x64">
|
|
17
|
-
<Configuration>Debug</Configuration>
|
|
18
|
-
<Platform>x64</Platform>
|
|
19
|
-
</ProjectConfiguration>
|
|
20
|
-
<ProjectConfiguration Include="Release.DLL|Win32">
|
|
21
|
-
<Configuration>Release.DLL</Configuration>
|
|
22
|
-
<Platform>Win32</Platform>
|
|
23
|
-
</ProjectConfiguration>
|
|
24
|
-
<ProjectConfiguration Include="Release.DLL|x64">
|
|
25
|
-
<Configuration>Release.DLL</Configuration>
|
|
26
|
-
<Platform>x64</Platform>
|
|
27
|
-
</ProjectConfiguration>
|
|
28
|
-
<ProjectConfiguration Include="Release|Win32">
|
|
29
|
-
<Configuration>Release</Configuration>
|
|
30
|
-
<Platform>Win32</Platform>
|
|
31
|
-
</ProjectConfiguration>
|
|
32
|
-
<ProjectConfiguration Include="Release|x64">
|
|
33
|
-
<Configuration>Release</Configuration>
|
|
34
|
-
<Platform>x64</Platform>
|
|
35
|
-
</ProjectConfiguration>
|
|
36
|
-
</ItemGroup>
|
|
37
|
-
<PropertyGroup Label="Globals">
|
|
38
|
-
<ProjectGuid>{E6784F91-4E4E-4956-A079-73FAB1AC7BE6}</ProjectGuid>
|
|
39
|
-
<Keyword>Win32Proj</Keyword>
|
|
40
|
-
<RootNamespace>audio_module_playing</RootNamespace>
|
|
41
|
-
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
|
42
|
-
<ProjectName>audio_module_playing</ProjectName>
|
|
43
|
-
</PropertyGroup>
|
|
44
|
-
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
45
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
|
46
|
-
<ConfigurationType>Application</ConfigurationType>
|
|
47
|
-
<UseDebugLibraries>true</UseDebugLibraries>
|
|
48
|
-
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
49
|
-
<CharacterSet>Unicode</CharacterSet>
|
|
50
|
-
</PropertyGroup>
|
|
51
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
52
|
-
<ConfigurationType>Application</ConfigurationType>
|
|
53
|
-
<UseDebugLibraries>true</UseDebugLibraries>
|
|
54
|
-
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
55
|
-
<CharacterSet>Unicode</CharacterSet>
|
|
56
|
-
</PropertyGroup>
|
|
57
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug.DLL|Win32'" Label="Configuration">
|
|
58
|
-
<ConfigurationType>Application</ConfigurationType>
|
|
59
|
-
<UseDebugLibraries>true</UseDebugLibraries>
|
|
60
|
-
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
61
|
-
<CharacterSet>Unicode</CharacterSet>
|
|
62
|
-
</PropertyGroup>
|
|
63
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug.DLL|x64'" Label="Configuration">
|
|
64
|
-
<ConfigurationType>Application</ConfigurationType>
|
|
65
|
-
<UseDebugLibraries>true</UseDebugLibraries>
|
|
66
|
-
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
67
|
-
<CharacterSet>Unicode</CharacterSet>
|
|
68
|
-
</PropertyGroup>
|
|
69
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
70
|
-
<ConfigurationType>Application</ConfigurationType>
|
|
71
|
-
<UseDebugLibraries>false</UseDebugLibraries>
|
|
72
|
-
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
73
|
-
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
74
|
-
<CharacterSet>Unicode</CharacterSet>
|
|
75
|
-
</PropertyGroup>
|
|
76
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
77
|
-
<ConfigurationType>Application</ConfigurationType>
|
|
78
|
-
<UseDebugLibraries>false</UseDebugLibraries>
|
|
79
|
-
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
80
|
-
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
81
|
-
<CharacterSet>Unicode</CharacterSet>
|
|
82
|
-
</PropertyGroup>
|
|
83
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release.DLL|Win32'" Label="Configuration">
|
|
84
|
-
<ConfigurationType>Application</ConfigurationType>
|
|
85
|
-
<UseDebugLibraries>false</UseDebugLibraries>
|
|
86
|
-
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
87
|
-
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
88
|
-
<CharacterSet>Unicode</CharacterSet>
|
|
89
|
-
</PropertyGroup>
|
|
90
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release.DLL|x64'" Label="Configuration">
|
|
91
|
-
<ConfigurationType>Application</ConfigurationType>
|
|
92
|
-
<UseDebugLibraries>false</UseDebugLibraries>
|
|
93
|
-
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
94
|
-
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
95
|
-
<CharacterSet>Unicode</CharacterSet>
|
|
96
|
-
</PropertyGroup>
|
|
97
|
-
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
98
|
-
<ImportGroup Label="ExtensionSettings">
|
|
99
|
-
</ImportGroup>
|
|
100
|
-
<ImportGroup Label="Shared">
|
|
101
|
-
</ImportGroup>
|
|
102
|
-
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
103
|
-
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
104
|
-
</ImportGroup>
|
|
105
|
-
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
|
106
|
-
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
107
|
-
</ImportGroup>
|
|
108
|
-
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug.DLL|Win32'" Label="PropertySheets">
|
|
109
|
-
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
110
|
-
</ImportGroup>
|
|
111
|
-
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug.DLL|x64'" Label="PropertySheets">
|
|
112
|
-
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
113
|
-
</ImportGroup>
|
|
114
|
-
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
115
|
-
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
116
|
-
</ImportGroup>
|
|
117
|
-
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
|
118
|
-
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
119
|
-
</ImportGroup>
|
|
120
|
-
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release.DLL|Win32'" Label="PropertySheets">
|
|
121
|
-
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
122
|
-
</ImportGroup>
|
|
123
|
-
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release.DLL|x64'" Label="PropertySheets">
|
|
124
|
-
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
125
|
-
</ImportGroup>
|
|
126
|
-
<PropertyGroup Label="UserMacros" />
|
|
127
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
128
|
-
<LinkIncremental>true</LinkIncremental>
|
|
129
|
-
<OutDir>$(SolutionDir)\build\$(ProjectName)\bin\$(Platform)\$(Configuration)\</OutDir>
|
|
130
|
-
<IntDir>$(SolutionDir)\build\$(ProjectName)\obj\$(Platform)\$(Configuration)\</IntDir>
|
|
131
|
-
</PropertyGroup>
|
|
132
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
133
|
-
<LinkIncremental>true</LinkIncremental>
|
|
134
|
-
<OutDir>$(SolutionDir)\build\$(ProjectName)\bin\$(Platform)\$(Configuration)\</OutDir>
|
|
135
|
-
<IntDir>$(SolutionDir)\build\$(ProjectName)\obj\$(Platform)\$(Configuration)\</IntDir>
|
|
136
|
-
</PropertyGroup>
|
|
137
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug.DLL|Win32'">
|
|
138
|
-
<LinkIncremental>true</LinkIncremental>
|
|
139
|
-
<OutDir>$(SolutionDir)\build\$(ProjectName)\bin\$(Platform)\$(Configuration)\</OutDir>
|
|
140
|
-
<IntDir>$(SolutionDir)\build\$(ProjectName)\obj\$(Platform)\$(Configuration)\</IntDir>
|
|
141
|
-
</PropertyGroup>
|
|
142
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug.DLL|x64'">
|
|
143
|
-
<LinkIncremental>true</LinkIncremental>
|
|
144
|
-
<OutDir>$(SolutionDir)\build\$(ProjectName)\bin\$(Platform)\$(Configuration)\</OutDir>
|
|
145
|
-
<IntDir>$(SolutionDir)\build\$(ProjectName)\obj\$(Platform)\$(Configuration)\</IntDir>
|
|
146
|
-
</PropertyGroup>
|
|
147
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
148
|
-
<LinkIncremental>false</LinkIncremental>
|
|
149
|
-
<OutDir>$(SolutionDir)\build\$(ProjectName)\bin\$(Platform)\$(Configuration)\</OutDir>
|
|
150
|
-
<IntDir>$(SolutionDir)\build\$(ProjectName)\obj\$(Platform)\$(Configuration)\</IntDir>
|
|
151
|
-
</PropertyGroup>
|
|
152
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
153
|
-
<LinkIncremental>false</LinkIncremental>
|
|
154
|
-
<OutDir>$(SolutionDir)\build\$(ProjectName)\bin\$(Platform)\$(Configuration)\</OutDir>
|
|
155
|
-
<IntDir>$(SolutionDir)\build\$(ProjectName)\obj\$(Platform)\$(Configuration)\</IntDir>
|
|
156
|
-
</PropertyGroup>
|
|
157
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release.DLL|Win32'">
|
|
158
|
-
<LinkIncremental>false</LinkIncremental>
|
|
159
|
-
<OutDir>$(SolutionDir)\build\$(ProjectName)\bin\$(Platform)\$(Configuration)\</OutDir>
|
|
160
|
-
<IntDir>$(SolutionDir)\build\$(ProjectName)\obj\$(Platform)\$(Configuration)\</IntDir>
|
|
161
|
-
</PropertyGroup>
|
|
162
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release.DLL|x64'">
|
|
163
|
-
<LinkIncremental>false</LinkIncremental>
|
|
164
|
-
<OutDir>$(SolutionDir)\build\$(ProjectName)\bin\$(Platform)\$(Configuration)\</OutDir>
|
|
165
|
-
<IntDir>$(SolutionDir)\build\$(ProjectName)\obj\$(Platform)\$(Configuration)\</IntDir>
|
|
166
|
-
</PropertyGroup>
|
|
167
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug.DLL|Win32'">
|
|
168
|
-
<LocalDebuggerWorkingDirectory>$(SolutionDir)..\..\examples\audio</LocalDebuggerWorkingDirectory>
|
|
169
|
-
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
|
170
|
-
</PropertyGroup>
|
|
171
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug.DLL|x64'">
|
|
172
|
-
<LocalDebuggerWorkingDirectory>$(SolutionDir)..\..\examples\audio</LocalDebuggerWorkingDirectory>
|
|
173
|
-
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
|
174
|
-
</PropertyGroup>
|
|
175
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
176
|
-
<LocalDebuggerWorkingDirectory>$(SolutionDir)..\..\examples\audio</LocalDebuggerWorkingDirectory>
|
|
177
|
-
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
|
178
|
-
</PropertyGroup>
|
|
179
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
180
|
-
<LocalDebuggerWorkingDirectory>$(SolutionDir)..\..\examples\audio</LocalDebuggerWorkingDirectory>
|
|
181
|
-
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
|
182
|
-
</PropertyGroup>
|
|
183
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release.DLL|Win32'">
|
|
184
|
-
<LocalDebuggerWorkingDirectory>$(SolutionDir)..\..\examples\audio</LocalDebuggerWorkingDirectory>
|
|
185
|
-
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
|
186
|
-
</PropertyGroup>
|
|
187
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
188
|
-
<LocalDebuggerWorkingDirectory>$(SolutionDir)..\..\examples\audio</LocalDebuggerWorkingDirectory>
|
|
189
|
-
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
|
190
|
-
</PropertyGroup>
|
|
191
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
192
|
-
<LocalDebuggerWorkingDirectory>$(SolutionDir)..\..\examples\audio</LocalDebuggerWorkingDirectory>
|
|
193
|
-
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
|
194
|
-
</PropertyGroup>
|
|
195
|
-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release.DLL|x64'">
|
|
196
|
-
<LocalDebuggerWorkingDirectory>$(SolutionDir)..\..\examples\audio</LocalDebuggerWorkingDirectory>
|
|
197
|
-
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
|
198
|
-
</PropertyGroup>
|
|
199
|
-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
200
|
-
<ClCompile>
|
|
201
|
-
<PrecompiledHeader>
|
|
202
|
-
</PrecompiledHeader>
|
|
203
|
-
<WarningLevel>Level3</WarningLevel>
|
|
204
|
-
<Optimization>Disabled</Optimization>
|
|
205
|
-
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;PLATFORM_DESKTOP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
206
|
-
<CompileAs>CompileAsC</CompileAs>
|
|
207
|
-
<AdditionalIncludeDirectories>$(SolutionDir)..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
208
|
-
</ClCompile>
|
|
209
|
-
<Link>
|
|
210
|
-
<SubSystem>Console</SubSystem>
|
|
211
|
-
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
212
|
-
<AdditionalLibraryDirectories>$(SolutionDir)\build\raylib\bin\$(Platform)\$(Configuration)\</AdditionalLibraryDirectories>
|
|
213
|
-
<AdditionalDependencies>raylib.lib;opengl32.lib;kernel32.lib;user32.lib;gdi32.lib;winmm.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
214
|
-
</Link>
|
|
215
|
-
</ItemDefinitionGroup>
|
|
216
|
-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
217
|
-
<ClCompile>
|
|
218
|
-
<PrecompiledHeader>
|
|
219
|
-
</PrecompiledHeader>
|
|
220
|
-
<WarningLevel>Level3</WarningLevel>
|
|
221
|
-
<Optimization>Disabled</Optimization>
|
|
222
|
-
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;PLATFORM_DESKTOP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
223
|
-
<CompileAs>CompileAsC</CompileAs>
|
|
224
|
-
<AdditionalIncludeDirectories>$(SolutionDir)..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
225
|
-
<AdditionalOptions>/FS %(AdditionalOptions)</AdditionalOptions>
|
|
226
|
-
</ClCompile>
|
|
227
|
-
<Link>
|
|
228
|
-
<SubSystem>Console</SubSystem>
|
|
229
|
-
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
230
|
-
<AdditionalLibraryDirectories>$(SolutionDir)\build\raylib\bin\$(Platform)\$(Configuration)\</AdditionalLibraryDirectories>
|
|
231
|
-
<AdditionalDependencies>raylib.lib;opengl32.lib;kernel32.lib;user32.lib;gdi32.lib;winmm.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
232
|
-
</Link>
|
|
233
|
-
</ItemDefinitionGroup>
|
|
234
|
-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug.DLL|Win32'">
|
|
235
|
-
<ClCompile>
|
|
236
|
-
<PrecompiledHeader>
|
|
237
|
-
</PrecompiledHeader>
|
|
238
|
-
<WarningLevel>Level3</WarningLevel>
|
|
239
|
-
<Optimization>Disabled</Optimization>
|
|
240
|
-
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;PLATFORM_DESKTOP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
241
|
-
<CompileAs>CompileAsC</CompileAs>
|
|
242
|
-
<AdditionalIncludeDirectories>$(SolutionDir)..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
243
|
-
</ClCompile>
|
|
244
|
-
<Link>
|
|
245
|
-
<SubSystem>Console</SubSystem>
|
|
246
|
-
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
247
|
-
<AdditionalLibraryDirectories>$(SolutionDir)\build\raylib\bin\$(Platform)\$(Configuration)\</AdditionalLibraryDirectories>
|
|
248
|
-
<AdditionalDependencies>raylib.lib;opengl32.lib;kernel32.lib;user32.lib;gdi32.lib;winmm.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
249
|
-
</Link>
|
|
250
|
-
<PostBuildEvent>
|
|
251
|
-
<Command>xcopy /y /d "$(SolutionDir)\build\raylib\bin\$(Platform)\$(Configuration)\raylib.dll" "$(SolutionDir)\build\$(ProjectName)\bin\$(Platform)\$(Configuration)"</Command>
|
|
252
|
-
<Message>Copy Debug DLL to output directory</Message>
|
|
253
|
-
</PostBuildEvent>
|
|
254
|
-
</ItemDefinitionGroup>
|
|
255
|
-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug.DLL|x64'">
|
|
256
|
-
<ClCompile>
|
|
257
|
-
<PrecompiledHeader>
|
|
258
|
-
</PrecompiledHeader>
|
|
259
|
-
<WarningLevel>Level3</WarningLevel>
|
|
260
|
-
<Optimization>Disabled</Optimization>
|
|
261
|
-
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;PLATFORM_DESKTOP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
262
|
-
<CompileAs>CompileAsC</CompileAs>
|
|
263
|
-
<AdditionalIncludeDirectories>$(SolutionDir)..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
264
|
-
</ClCompile>
|
|
265
|
-
<Link>
|
|
266
|
-
<SubSystem>Console</SubSystem>
|
|
267
|
-
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
268
|
-
<AdditionalLibraryDirectories>$(SolutionDir)\build\raylib\bin\$(Platform)\$(Configuration)\</AdditionalLibraryDirectories>
|
|
269
|
-
<AdditionalDependencies>raylib.lib;opengl32.lib;kernel32.lib;user32.lib;gdi32.lib;winmm.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
270
|
-
</Link>
|
|
271
|
-
<PostBuildEvent>
|
|
272
|
-
<Command>xcopy /y /d "$(SolutionDir)\build\raylib\bin\$(Platform)\$(Configuration)\raylib.dll" "$(SolutionDir)\build\$(ProjectName)\bin\$(Platform)\$(Configuration)"</Command>
|
|
273
|
-
<Message>Copy Debug DLL to output directory</Message>
|
|
274
|
-
</PostBuildEvent>
|
|
275
|
-
</ItemDefinitionGroup>
|
|
276
|
-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
277
|
-
<ClCompile>
|
|
278
|
-
<WarningLevel>Level3</WarningLevel>
|
|
279
|
-
<PrecompiledHeader>
|
|
280
|
-
</PrecompiledHeader>
|
|
281
|
-
<Optimization>MaxSpeed</Optimization>
|
|
282
|
-
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
283
|
-
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
284
|
-
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions);PLATFORM_DESKTOP</PreprocessorDefinitions>
|
|
285
|
-
<AdditionalIncludeDirectories>$(SolutionDir)..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
286
|
-
<CompileAs>CompileAsC</CompileAs>
|
|
287
|
-
<RemoveUnreferencedCodeData>true</RemoveUnreferencedCodeData>
|
|
288
|
-
</ClCompile>
|
|
289
|
-
<Link>
|
|
290
|
-
<SubSystem>Console</SubSystem>
|
|
291
|
-
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
292
|
-
<OptimizeReferences>true</OptimizeReferences>
|
|
293
|
-
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
294
|
-
<AdditionalDependencies>raylib.lib;opengl32.lib;kernel32.lib;user32.lib;gdi32.lib;winmm.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
295
|
-
<AdditionalLibraryDirectories>$(SolutionDir)\build\raylib\bin\$(Platform)\$(Configuration)\</AdditionalLibraryDirectories>
|
|
296
|
-
</Link>
|
|
297
|
-
</ItemDefinitionGroup>
|
|
298
|
-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
299
|
-
<ClCompile>
|
|
300
|
-
<WarningLevel>Level3</WarningLevel>
|
|
301
|
-
<PrecompiledHeader>
|
|
302
|
-
</PrecompiledHeader>
|
|
303
|
-
<Optimization>MaxSpeed</Optimization>
|
|
304
|
-
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
305
|
-
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
306
|
-
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions);PLATFORM_DESKTOP</PreprocessorDefinitions>
|
|
307
|
-
<AdditionalIncludeDirectories>$(SolutionDir)..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
308
|
-
<CompileAs>CompileAsC</CompileAs>
|
|
309
|
-
<RemoveUnreferencedCodeData>true</RemoveUnreferencedCodeData>
|
|
310
|
-
</ClCompile>
|
|
311
|
-
<Link>
|
|
312
|
-
<SubSystem>Console</SubSystem>
|
|
313
|
-
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
314
|
-
<OptimizeReferences>true</OptimizeReferences>
|
|
315
|
-
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
316
|
-
<AdditionalDependencies>raylib.lib;opengl32.lib;kernel32.lib;user32.lib;gdi32.lib;winmm.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
317
|
-
<AdditionalLibraryDirectories>$(SolutionDir)\build\raylib\bin\$(Platform)\$(Configuration)\</AdditionalLibraryDirectories>
|
|
318
|
-
</Link>
|
|
319
|
-
</ItemDefinitionGroup>
|
|
320
|
-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release.DLL|Win32'">
|
|
321
|
-
<ClCompile>
|
|
322
|
-
<WarningLevel>Level3</WarningLevel>
|
|
323
|
-
<PrecompiledHeader>
|
|
324
|
-
</PrecompiledHeader>
|
|
325
|
-
<Optimization>MaxSpeed</Optimization>
|
|
326
|
-
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
327
|
-
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
328
|
-
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions);PLATFORM_DESKTOP</PreprocessorDefinitions>
|
|
329
|
-
<AdditionalIncludeDirectories>$(SolutionDir)..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
330
|
-
<CompileAs>CompileAsC</CompileAs>
|
|
331
|
-
<RemoveUnreferencedCodeData>true</RemoveUnreferencedCodeData>
|
|
332
|
-
</ClCompile>
|
|
333
|
-
<Link>
|
|
334
|
-
<SubSystem>Console</SubSystem>
|
|
335
|
-
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
336
|
-
<OptimizeReferences>true</OptimizeReferences>
|
|
337
|
-
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
338
|
-
<AdditionalDependencies>raylib.lib;opengl32.lib;kernel32.lib;user32.lib;gdi32.lib;winmm.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
339
|
-
<AdditionalLibraryDirectories>$(SolutionDir)\build\raylib\bin\$(Platform)\$(Configuration)\</AdditionalLibraryDirectories>
|
|
340
|
-
</Link>
|
|
341
|
-
<PostBuildEvent>
|
|
342
|
-
<Command>xcopy /y /d "$(SolutionDir)\build\raylib\bin\$(Platform)\$(Configuration)\raylib.dll" "$(SolutionDir)\build\$(ProjectName)\bin\$(Platform)\$(Configuration)"</Command>
|
|
343
|
-
</PostBuildEvent>
|
|
344
|
-
<PostBuildEvent>
|
|
345
|
-
<Message>Copy Release DLL to output directory</Message>
|
|
346
|
-
</PostBuildEvent>
|
|
347
|
-
</ItemDefinitionGroup>
|
|
348
|
-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release.DLL|x64'">
|
|
349
|
-
<ClCompile>
|
|
350
|
-
<WarningLevel>Level3</WarningLevel>
|
|
351
|
-
<PrecompiledHeader>
|
|
352
|
-
</PrecompiledHeader>
|
|
353
|
-
<Optimization>MaxSpeed</Optimization>
|
|
354
|
-
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
355
|
-
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
356
|
-
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions);PLATFORM_DESKTOP</PreprocessorDefinitions>
|
|
357
|
-
<AdditionalIncludeDirectories>$(SolutionDir)..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
358
|
-
<CompileAs>CompileAsC</CompileAs>
|
|
359
|
-
<RemoveUnreferencedCodeData>true</RemoveUnreferencedCodeData>
|
|
360
|
-
</ClCompile>
|
|
361
|
-
<Link>
|
|
362
|
-
<SubSystem>Console</SubSystem>
|
|
363
|
-
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
364
|
-
<OptimizeReferences>true</OptimizeReferences>
|
|
365
|
-
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
366
|
-
<AdditionalDependencies>raylib.lib;opengl32.lib;kernel32.lib;user32.lib;gdi32.lib;winmm.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
367
|
-
<AdditionalLibraryDirectories>$(SolutionDir)\build\raylib\bin\$(Platform)\$(Configuration)\</AdditionalLibraryDirectories>
|
|
368
|
-
</Link>
|
|
369
|
-
<PostBuildEvent>
|
|
370
|
-
<Command>xcopy /y /d "$(SolutionDir)\build\raylib\bin\$(Platform)\$(Configuration)\raylib.dll" "$(SolutionDir)\build\$(ProjectName)\bin\$(Platform)\$(Configuration)"</Command>
|
|
371
|
-
</PostBuildEvent>
|
|
372
|
-
<PostBuildEvent>
|
|
373
|
-
<Message>Copy Release DLL to output directory</Message>
|
|
374
|
-
</PostBuildEvent>
|
|
375
|
-
</ItemDefinitionGroup>
|
|
376
|
-
<ItemGroup>
|
|
377
|
-
<ClCompile Include="..\..\..\examples\audio\audio_module_playing.c" />
|
|
378
|
-
</ItemGroup>
|
|
379
|
-
<ItemGroup>
|
|
380
|
-
<ProjectReference Include="..\raylib\raylib.vcxproj">
|
|
381
|
-
<Project>{e89d61ac-55de-4482-afd4-df7242ebc859}</Project>
|
|
382
|
-
</ProjectReference>
|
|
383
|
-
</ItemGroup>
|
|
384
|
-
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
385
|
-
<ImportGroup Label="ExtensionTargets">
|
|
386
|
-
</ImportGroup>
|
|
387
|
-
</Project>
|