/
gmake.lua
1247 lines (1104 loc) · 47.4 KB
/
gmake.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
local docs = {}
docs.header =
[[
__
___ __ _ ___ / /_____
/ _ `/ ' \/ _ `/ '_/ -_)
\_, /_/_/_/\_,_/_/\_\\__/ .lua
/___/
cross platform build system for Gideros plugins
"fitter, happier, more productive"
]]
docs.body =
[[
Usage:
From your root plugin directory (eg gideros/plugins/myplugin) run:
lua ../gmake.lua [options]
Options:
-help | -h : show help
-create | -c : create a skeleton plugin.def.lua file
]]
docs.help =
[[
Help:
1. Create a directory for your plugin (eg gideros/plugins/myplugin)
2. In that directory, create the definition file with the extension .def.lua (eg plugin.def.lua)
or run lua ../gmake.lua -c to create a skeleton file called plugin.def.lua
3. Again from that directory (eg gideros/plugins/myplugin/) run:
lua ../gmake.lua
General:
Remember that once you have created your build files with gmake, you should add/remove files used
in your project via the plugin.def.lua file and re-run gmake as necessary. This will keep files in
sync across target build files.
Warning:
To be clear, CHANGES WILL BE LOST the next time you run gmake if you change a file in a make or
project file without updating the .def.lua file. So use gmake either not at all, only once to set up
your plugin or (recommended) as part of your dev process.
.
]]
-- allow require to find def.lua files
package.path = "?/?.def.lua;?.def.lua;" .. package.path
-- write to file and output to console
local write = function(file, str)
file:write(str .."\n")
print(str)
end
--
local comments = {}
comments.header = "##BEGIN##\n##CONT## autogenerated by gmake.lua\n##END##\n\n"
local function writeHeader(file, _type)
local str = comments.header
if _type == "#" then
str = str:gsub("##BEGIN##", "#")
str = str:gsub("##CONT##", "#")
str = str:gsub("##END##", "#")
elseif _type == "XML" then
str = str:gsub("##BEGIN##", "<!--")
str = str:gsub("##CONT##", " ")
str = str:gsub("##END##", "-->")
elseif _type == "C" then
str = str:gsub("##BEGIN##", "/*")
str = str:gsub("##CONT##", " ")
str = str:gsub("##END##", "*/")
end
write(file, str)
end
-- for maintaining nice autogenerated indentation
local getPaddedString = function(str, target_length)
if #str >= target_length then return str end
return str .. string.rep(" ", target_length - #str)
end
-- get nice string from table, with table entries prefixed and suffixed and
-- separated by custom separator (eg space or comma)
local function getSepStringFromTable(t, separator, prefix, suffix)
local s = ""
prefix = prefix and prefix or ""
suffix = suffix and suffix or ""
for k, v in ipairs(t) do
s = s .. prefix .. v .. suffix .. separator
end
return s
end
-- one shot file creation function
local function createFileWithContent(dir, file_name, content)
local file = io.open(dir .. os.sep .. file_name, "w")
if not file then return false end
print("\n\nWriting file.. " .. dir .. os.sep .. file_name .. "\n")
file:write(content)
file:close()
print(content)
return true
end
--
local function appendToFile(dir, file_name, content)
local file = io.open(dir .. os.sep .. file_name, "a")
if not file then return false end
file:write(content)
file:close()
return true
end
--
local function createDirectory(dir)
print("Creating directory:", dir)
local command = "mkdir " .. dir
print(command)
os.execute(command)
end
------------------------------------------------------------------------------
-- android
------------------------------------------------------------------------------
local android = {}
--
android.application_mk =
[[
APP_STL := c++_static
APP_CPPFLAGS += -fexceptions -frtti
APP_PLATFORM := android-9
##APP_ABI := all
APP_OPTIM := release]]
android.header = "LOCAL_PATH := $(call my-dir)\n"
android.clear_sep = "###\n\ninclude $(CLEAR_VARS)\n"
android.library_entry = android.clear_sep ..
[[
LOCAL_MODULE := ##REPLACE##
LOCAL_SRC_FILES := ../../../../Sdk/lib/android/$(TARGET_ARCH_ABI)/lib##REPLACE##.so
include $(PREBUILT_SHARED_LIBRARY)]]
android.includes = [[$(LOCAL_PATH)/../../../../Sdk/include \
$(LOCAL_PATH)/../../../../lua/src]]
android.source_prefix = "../common/"
--
android.createGpluginSection = function()
local section = [==[
<target name="AndroidStudio,APK">
<template name="binaries" path="[[[sys.pluginDir]]]/bin/Android/libs" dest="app/src/main/jniLibs"/>
<template name="Activity" path="">
<replacelist wildcards="[[[project.namews]]]Activity.java">
<append orig="//GIDEROS-STATIC-INIT//" by=" System.loadLibrary("##REPLACE##");"/>
</replacelist>
</template>
</target>
<target name="Android">
<template name="binares" path="[[[sys.pluginDir]]]/bin/Android"/>
<template name="Activity" path="">
<replacelist wildcards="[[[project.namews]]]Activity.java">
<append orig="//GIDEROS-STATIC-INIT//" by=" System.loadLibrary("##REPLACE##");"/>
</replacelist>
</template>
</target>
]==]
local lc_name = plugin.name.lower
appendToFile(".", lc_name .. ".gplugin", section:gsub("##REPLACE##", lc_name) .. "\n")
end
--
android.createFiles = function(plugin)
print("\n\nCreating Android files\n-----------------------")
local file, file_name
local jni_dir = "source" .. os.sep .. "jni"
createDirectory(jni_dir)
file_name = "Application.mk"
print("Writing file: " .. file_name)
file = io.open(jni_dir .. os.sep .. file_name, "w")
writeHeader(file, "#")
write(file, android.application_mk)
file:close()
file_name = "Android.mk"
print("Writing file: " .. file_name)
file = io.open(jni_dir .. os.sep .. file_name, "w")
writeHeader(file, "#")
write(file, android.header)
for k, v in ipairs(plugin.libs) do
local res = string.gsub(android.library_entry, "##REPLACE##", v) .. "\n"
write(file, res)
print(res)
end
write(file, android.clear_sep)
write(file, "INCS:=")
for k, v in ipairs(plugin.includes) do
write(file, "INCS+=../" .. v)
end
write(file, "\n")
local function getSection(str, sep) return getPaddedString(str, 23) .. sep end
write(file, getSection("LOCAL_MODULE", ":= ") .. plugin.name.lower)
write(file, getSection("LOCAL_ARM_MODE", ":= ") .. "arm")
write(file, getSection("LOCAL_CFLAGS", ":= ") .. "-O2")
write(file, getSection("LOCAL_C_INCLUDES", "+= ") .. "$(addprefix $(LOCAL_PATH),$(INCS))")
write(file, getSection("LOCAL_SRC_FILES", ":= ") ..
getSepStringFromTable(plugin.sources.cxx, " ", android.source_prefix, ".cpp"))
write(file, getSection("LOCAL_LDLIBS", ":= ") .. "-ldl -llog")
write(file, getSection("LOCAL_SHARED_LIBRARIES", ":= ") ..
getSepStringFromTable(plugin.libs, " "))
write(file, "\ninclude $(BUILD_SHARED_LIBRARY)\n")
file:close()
android.createGpluginSection()
return "Finished creating Android files."
end
------------------------------------------------------------------------------
-- shared win32/html5
------------------------------------------------------------------------------
-- win32 and emscripten/html5 make files are nearly identical
-- so create shared entries here
local commonMake = function(make_dir)
file_name = "Makefile"
print("Writing file: " .. file_name)
local file = io.open(make_dir .. os.sep .. file_name, "w")
writeHeader(file, "#")
write(file, "Target=" .. plugin.name.lower .. "\n")
if #plugin.sources.dirs > 0 then
-- create vpath entries by compairing inc paths to sources
for k, v in ipairs(plugin.sources.dirs) do
write(file, "vpath %.cpp " .. v)
write(file, "vpath %.c " .. v)
end
write(file, "")
end
-- these Makefiles include paths are 1 less deep than relative to common
-- so strip one level back
for k, v in ipairs(plugin.includes) do
write(file, "INCS += " .. v:sub(4, #v))
end
-- get one line list of source files, name only
local str = ""
for k, v in ipairs(plugin.sources.cxx) do
local name = v:match("([%w^_%-]+)$")
if v:match("^[.\\/]") == nil then
name = "common/" .. name
end
str = str .. name .. " "
end
write(file, "SRCS += " .. str)
return file
end
------------------------------------------------------------------------------
-- win32
------------------------------------------------------------------------------
local win32 = {}
--
win32.createGpluginSection = function()
local section = [==[
<target name="Win32">
<template name="binaries" path="[[[sys.pluginDir]]]/bin/win32" dest="plugins"/>
</target>
]==]
local lc_name = plugin.name.lower
appendToFile(".", lc_name .. ".gplugin", section:gsub("##REPLACE##", lc_name) .. "\n")
end
--
win32.createFiles = function(plugin)
print("\n\nCreating win32 Makefile\n-----------------------")
-- mkdir doesn't like /'s on Windows when os.execute'd
local make_dir = "source" .. os.sep .. "win32"
createDirectory(make_dir)
local file = commonMake(make_dir)
write(file, "\ninclude $(ROOT)/scripts/GidWin32Plugin.mk")
file:close()
win32.createGpluginSection()
return "Finished creating win32 Makefile."
end
------------------------------------------------------------------------------
-- html5
------------------------------------------------------------------------------
local html5 = {}
--
html5.createGpluginSection = function()
local section = [==[
<target name="Html5">
<template name="binaries" path="[[[sys.pluginDir]]]/bin/Html5"/>
<template name="Activity" path="">
<replacelist wildcards="index.html">
<append orig="/*GIDEROS_DYNLIB_PLUGIN*/" by=""##REPLACE##.js","/>
</replacelist>
</template>
</target>
]==]
local lc_name = plugin.name.lower
appendToFile(".", lc_name .. ".gplugin", section:gsub("##REPLACE##", lc_name) .. "\n")
end
--
html5.createFiles = function(plugin)
print("\n\nCreating emscripten Makefile for html5\n-----------------------")
-- mkdir doesn't like /'s on Windows when os.execute'd
local make_dir = "source" .. os.sep .. "emscripten"
createDirectory(make_dir)
local file = commonMake(make_dir)
write(file, "\ninclude ../../../../emscripten/Plugin.mk")
file:close()
html5.createGpluginSection()
return "Finished creating emscripten Makefile for html5."
end
------------------------------------------------------------------------------
-- desktop: windows and macos
------------------------------------------------------------------------------
local desktop = {}
--
desktop.createFiles = function(plugin)
print("\n\nCreating .pro file for Desktop\n-----------------------")
-- mkdir doesn't like /'s on Windows when os.execute'd
local dir = "source" .. os.sep .. "desktop"
createDirectory(dir)
local file_name = plugin.name.lower .. ".pro"
print("Writing file: " .. file_name)
local file = io.open(dir .. os.sep .. file_name, "w")
writeHeader(file, "#")
write(file, "QT -= core gui\n")
write(file, "TARGET = " .. plugin.name.lower)
write(file, "TEMPLATE = lib\n")
for k, v in ipairs(plugin.includes) do
write(file, "INCLUDEPATH += " .. v)
end
write(file, "")
for i = 1, #plugin.sources.cxx do
local s = plugin.sources.cxx[i] .. ".cpp"
write(file, "SOURCES += " .. "../common/" .. s)
end
write(file, "\nwin32{\n debug_in_place{") -- for debugging from Qt Creator
write(file, " DESTDIR = ../../../../Build.Win/Plugins")
local libs = getSepStringFromTable(plugin.libs, " ", "-l")
write(file, [[ LIBS += -L"../../../../Build.Win" ]] .. libs)
write(file, [[ } else {
LIBS += -L"../../../../Sdk/lib/desktop" ]] .. libs)
write(file, " }\n} else {")
write(file, [[ LIBS += -L"../../../../Sdk/lib/desktop" ]] .. libs)
write(file, "}")
write(file, "\nmacx {")
local mac_lib = [[ QMAKE_POST_LINK += install_name_tool -change lib##REPLACE##.1.dylib "@executable_path/../Frameworks/lib##REPLACE##.1.dylib" $(TARGET);]]
for k, v in ipairs(plugin.libs) do
write(file, mac_lib:gsub("##REPLACE##", v))
end
write(file, "}")
file:close()
return "Finished creating .pro file for Desktop."
end
------------------------------------------------------------------------------
------------------------------------------------------------------------------
local winrt = {}
--
winrt.createEntries = function(_type, prefix, t, suffix)
local entries = {}
for k, v in ipairs(t) do
-- if root, it's in common dir
if v:match("^[%w_%-]") then
v = "../../../common/" .. v
else
v = "../../" .. v
end
v = v .. suffix
entries[#entries + 1] = " " .. _type .. "$(MSBuildThisFileDirectory)" .. prefix .. v
entries[#entries + 1] = "\n"
end
entries[#entries] = nil
return table.concat(entries)
end
--
winrt.createGpluginSection = function()
-- TODO: finish winRT gplugin
local section = [==[
<target name="WinRT">
<template name="sources" path="[[[sys.pluginDir]]]/bin/WinRT" />
<template name="binaries" path="[[[sys.pluginDir]]]/source/common" dest="giderosgame/giderosgame.Shared/Plugins" include="*.cpp;*.h;*.hpp" exclude="emscripten;win32;jni;iOS"/>
<template name="project" path="">
<replacelist wildcards="giderosgame.Shared.vcxitems">
<append>
<orig><![CDATA[<!--GIDEROS-PLUGIN-FILES-->]]></orig>
<by><![CDATA[
##SOURCES##]]>
</by>
</append>
<append>
<orig><![CDATA[<!--GIDEROS-LINK-SHARED-->]]></orig>
<by><![CDATA[
<AdditionalDependencies>%(AdditionalDependencies);##NAME##.$(GidProjectType).lib</AdditionalDependencies>]]>
</by>
</append>
</replacelist>
</template>
</target>
]==]
local lc_name = plugin.name.lower
section = section:gsub("##NAME##", lc_name)
local entries = winrt.createEntries(" <ClCompile Include=\"", "", plugin.sources.cxx, [[.cpp">
<PrecompiledHeader>NotUsing</PrecompiledHeader>
</ClCompile>]])
section = section:gsub("##SOURCES##", entries)
appendToFile(".", lc_name .. ".gplugin", section .. "\n")
end
--
winrt.createFiles = function(plugin)
print("\n\nCreating winRT solution files\n-----------------------")
-- mkdir doesn't like /'s on Windows when os.execute'd
local dir = "source" .. os.sep .. "winrt"
createDirectory(dir)
local plugin_sln = string.gsub([[
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Express 2013 for Windows
VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "##REPLACE##", "##REPLACE##", "{2BA44C23-8D6F-4743-9F2A-56D8B26DC02A}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "##REPLACE##.Shared", "##REPLACE##\##REPLACE##.Shared\##REPLACE##.Shared.vcxitems", "{B08EA2BF-55B6-4390-B5A9-ABB1602FCC15}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "##REPLACE##.Windows", "##REPLACE##\##REPLACE##.Windows\##REPLACE##.Windows.vcxproj", "{2040CCF5-6C45-482F-AAAF-16968C3F0834}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "##REPLACE##.WindowsPhone", "##REPLACE##\##REPLACE##.WindowsPhone\##REPLACE##.WindowsPhone.vcxproj", "{73FE7488-063C-4B66-AF11-1D6F33F9899C}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
##REPLACE##\##REPLACE##.Shared\##REPLACE##.Shared.vcxitems*{b08ea2bf-55b6-4390-b5a9-abb1602fcc15}*SharedItemsImports = 9
##REPLACE##\##REPLACE##.Shared\##REPLACE##.Shared.vcxitems*{2040ccf5-6c45-482f-aaaf-16968c3f0834}*SharedItemsImports = 4
##REPLACE##\##REPLACE##.Shared\##REPLACE##.Shared.vcxitems*{73fe7488-063c-4b66-af11-1d6f33f9899c}*SharedItemsImports = 4
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|ARM = Release|ARM
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2040CCF5-6C45-482F-AAAF-16968C3F0834}.Debug|ARM.ActiveCfg = Debug|ARM
{2040CCF5-6C45-482F-AAAF-16968C3F0834}.Debug|ARM.Build.0 = Debug|ARM
{2040CCF5-6C45-482F-AAAF-16968C3F0834}.Debug|Win32.ActiveCfg = Debug|Win32
{2040CCF5-6C45-482F-AAAF-16968C3F0834}.Debug|Win32.Build.0 = Debug|Win32
{2040CCF5-6C45-482F-AAAF-16968C3F0834}.Debug|x64.ActiveCfg = Debug|x64
{2040CCF5-6C45-482F-AAAF-16968C3F0834}.Debug|x64.Build.0 = Debug|x64
{2040CCF5-6C45-482F-AAAF-16968C3F0834}.Release|ARM.ActiveCfg = Release|ARM
{2040CCF5-6C45-482F-AAAF-16968C3F0834}.Release|ARM.Build.0 = Release|ARM
{2040CCF5-6C45-482F-AAAF-16968C3F0834}.Release|Win32.ActiveCfg = Release|Win32
{2040CCF5-6C45-482F-AAAF-16968C3F0834}.Release|Win32.Build.0 = Release|Win32
{2040CCF5-6C45-482F-AAAF-16968C3F0834}.Release|x64.ActiveCfg = Release|x64
{2040CCF5-6C45-482F-AAAF-16968C3F0834}.Release|x64.Build.0 = Release|x64
{73FE7488-063C-4B66-AF11-1D6F33F9899C}.Debug|ARM.ActiveCfg = Debug|ARM
{73FE7488-063C-4B66-AF11-1D6F33F9899C}.Debug|ARM.Build.0 = Debug|ARM
{73FE7488-063C-4B66-AF11-1D6F33F9899C}.Debug|Win32.ActiveCfg = Debug|Win32
{73FE7488-063C-4B66-AF11-1D6F33F9899C}.Debug|Win32.Build.0 = Debug|Win32
{73FE7488-063C-4B66-AF11-1D6F33F9899C}.Debug|x64.ActiveCfg = Debug|Win32
{73FE7488-063C-4B66-AF11-1D6F33F9899C}.Release|ARM.ActiveCfg = Release|ARM
{73FE7488-063C-4B66-AF11-1D6F33F9899C}.Release|ARM.Build.0 = Release|ARM
{73FE7488-063C-4B66-AF11-1D6F33F9899C}.Release|Win32.ActiveCfg = Release|Win32
{73FE7488-063C-4B66-AF11-1D6F33F9899C}.Release|Win32.Build.0 = Release|Win32
{73FE7488-063C-4B66-AF11-1D6F33F9899C}.Release|x64.ActiveCfg = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{B08EA2BF-55B6-4390-B5A9-ABB1602FCC15} = {2BA44C23-8D6F-4743-9F2A-56D8B26DC02A}
{2040CCF5-6C45-482F-AAAF-16968C3F0834} = {2BA44C23-8D6F-4743-9F2A-56D8B26DC02A}
{73FE7488-063C-4B66-AF11-1D6F33F9899C} = {2BA44C23-8D6F-4743-9F2A-56D8B26DC02A}
EndGlobalSection
EndGlobal
]], "##REPLACE##", plugin.name.lower)
local file_name = plugin.name.lower .. ".sln"
print("Writing file: " .. file_name)
local file = io.open(dir .. os.sep .. file_name, "w")
writeHeader(file, "#")
write(file, plugin_sln)
file:close()
local source_dir = dir .. os.sep .. plugin.name.lower -- "source"
print("Creating directory:", source_dir)
command = "mkdir " .. source_dir
print(command)
os.execute(command)
--
-- plugin.Shared directory
local shared_dir = source_dir .. os.sep .. plugin.name.lower .. ".Shared"
print("Creating directory:", shared_dir)
command = "mkdir " .. shared_dir
print(command)
os.execute(command)
createFileWithContent(shared_dir, "pch.cpp", [[#include "pch.h"]])
createFileWithContent(shared_dir, "pch.h", [[
#pragma once
#include "targetver.h"
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
]])
--
createFileWithContent(shared_dir, "targetver.h", [[#pragma once
// Si vous incluez SDKDDKVer.h, cela définit la dernière plateforme Windows disponible.
// Si vous souhaitez générer votre application pour une plateforme Windows précédente, incluez WinSDKVer.h et
// définissez la macro _WIN32_WINNT à la plateforme que vous souhaitez prendre en charge avant d'inclure SDKDDKVer.h.
#include <SDKDDKVer.h>
]])
local content = "#include \"pch.h\"\n#include \"##REPLACE##.h\"\n"
createFileWithContent(shared_dir, plugin.name.lower .. ".cpp", content:gsub("##REPLACE##", plugin.name.lower))
createFileWithContent(shared_dir, plugin.name.lower .. ".h", "#pragma once\n")
-- plugin.Shared.vcxitems
content =
[==[
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<HasSharedItems>true</HasSharedItems>
<ItemsProjectGuid>{b08ea2bf-55b6-4390-b5a9-abb1602fcc15}</ItemsProjectGuid>
<ItemsRootNamespace>##NAME##</ItemsRootNamespace>
<ItemsProjectName>##NAME##.Shared</ItemsProjectName>
<CodeSharingProject>248F659F-DAC5-46E8-AC09-60EC9FC95053</CodeSharingProject>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<AdditionalIncludeDirectories>
%(AdditionalIncludeDirectories);
$(MSBuildThisFileDirectory);
##INCLUDES##
</AdditionalIncludeDirectories>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup>
##HEADERS##
<ClInclude Include="$(MSBuildThisFileDirectory)targetver.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)pch.h" />
</ItemGroup>
<ItemGroup>
##SOURCES##
<ClCompile Include="$(MSBuildThisFileDirectory)pch.cpp">
<PrecompiledHeader>Create</PrecompiledHeader>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ProjectCapability Include="SourceItemsFromImports" />
</ItemGroup>
</Project>
]==]
content = content:gsub("##NAME##", plugin.name.lower)
content = content:gsub("##INCLUDES##", winrt.createEntries(" ", "", plugin.includes, ";"))
content = content:gsub("##HEADERS##", winrt.createEntries("<ClInclude Include=\"", "", plugin.headers, "\" />"))
content = content:gsub("##SOURCES##", winrt.createEntries("<ClCompile Include=\"", "", plugin.sources.cxx, ".cpp\" />"))
createFileWithContent(shared_dir, plugin.name.lower .. ".Shared.vcxitems", content)
content =
[==[
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ClInclude Include="$(MSBuildThisFileDirectory)targetver.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)pch.h" />
##HEADERS##
</ItemGroup>
<ItemGroup>
<ClCompile Include="$(MSBuildThisFileDirectory)pch.cpp">
<PrecompiledHeader>Create</PrecompiledHeader>
</ClCompile>
##SOURCES##
</ItemGroup>
</Project>
]==]
content = content:gsub("##HEADERS##", winrt.createEntries("<ClInclude Include=\"", "", plugin.headers, "\" />"))
content = content:gsub("##SOURCES##", winrt.createEntries("<ClCompile Include=\"", "", plugin.sources.cxx, ".cpp\" />"))
createFileWithContent(shared_dir, plugin.name.lower .. ".Shared.vcxitems.filters", content .. "\n")
--
-- plugin.Windows directory
local windows_dir = source_dir .. os.sep .. plugin.name.lower .. ".Windows"
print("Creating directory:", windows_dir)
command = "mkdir " .. windows_dir
print(command)
os.execute(command)
content =
[==[
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|ARM">
<Configuration>Debug</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM">
<Configuration>Release</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{2040ccf5-6c45-482f-aaaf-16968c3f0834}</ProjectGuid>
<RootNamespace>##NAME##</RootNamespace>
<DefaultLanguage>fr-FR</DefaultLanguage>
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
<AppContainerApplication>true</AppContainerApplication>
<ApplicationType>Windows Store</ApplicationType>
<ApplicationTypeRevision>8.1</ApplicationTypeRevision>
<ConvergedProjectType>CodeSharingStaticLibrary</ConvergedProjectType>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<PlatformToolset>v120</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<PlatformToolset>v120</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<PlatformToolset>v120</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<Import Project="..\##NAME##.Shared\##NAME##.Shared.vcxitems" Label="Shared" />
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<GenerateManifest>false</GenerateManifest>
<OutDir>$(ProjectDir)$(Configuration)\$(ProjectName)\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<GenerateManifest>false</GenerateManifest>
<OutDir>$(ProjectDir)$(Configuration)\$(ProjectName)\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
<GenerateManifest>false</GenerateManifest>
<OutDir>$(ProjectDir)$(Configuration)\$(ProjectName)\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
<GenerateManifest>false</GenerateManifest>
<OutDir>$(ProjectDir)$(Configuration)\$(ProjectName)\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<GenerateManifest>false</GenerateManifest>
<OutDir>$(ProjectDir)$(Configuration)\$(ProjectName)\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<GenerateManifest>false</GenerateManifest>
<OutDir>$(ProjectDir)$(Configuration)\$(ProjectName)\</OutDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<CompileAsWinRT>false</CompileAsWinRT>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..\..\..\..\Sdk\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WINSTORE;_CRT_SECURE_NO_WARNINGS;CUSTOM_ALLOC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<CompileAsWinRT>false</CompileAsWinRT>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..\..\..\..\Sdk\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WINSTORE;_CRT_SECURE_NO_WARNINGS;CUSTOM_ALLOC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|arm'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<CompileAsWinRT>false</CompileAsWinRT>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..\..\..\..\Sdk\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WINSTORE;_CRT_SECURE_NO_WARNINGS;CUSTOM_ALLOC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|arm'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<CompileAsWinRT>false</CompileAsWinRT>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..\..\..\..\Sdk\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WINSTORE;_CRT_SECURE_NO_WARNINGS;CUSTOM_ALLOC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<CompileAsWinRT>false</CompileAsWinRT>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..\..\..\..\Sdk\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WINSTORE;_CRT_SECURE_NO_WARNINGS;CUSTOM_ALLOC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<CompileAsWinRT>false</CompileAsWinRT>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..\..\..\..\Sdk\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WINSTORE;_CRT_SECURE_NO_WARNINGS;CUSTOM_ALLOC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
]==]
content = content:gsub("##NAME##", plugin.name.lower)
createFileWithContent(windows_dir, plugin.name.lower .. ".Windows.vcxproj", content .. "\n")
content =
[==[
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
</ItemGroup>
</Project>
]==]
createFileWithContent(windows_dir, plugin.name.lower .. ".Windows.vcxproj.filters", content .. "\n")
--
-- plugin.WindowsPhone directory
local windowsphone_dir = source_dir .. os.sep .. plugin.name.lower .. ".WindowsPhone"
print("Creating directory:", windowsphone_dir)
command = "mkdir " .. windowsphone_dir
print(command)
os.execute(command)
content =
[==[
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|ARM">
<Configuration>Debug</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM">
<Configuration>Release</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{73fe7488-063c-4b66-af11-1d6f33f9899c}</ProjectGuid>
<RootNamespace>##NAME##</RootNamespace>
<DefaultLanguage>fr-FR</DefaultLanguage>
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
<AppContainerApplication>true</AppContainerApplication>
<ApplicationType>Windows Phone</ApplicationType>
<ApplicationTypeRevision>8.1</ApplicationTypeRevision>
<ConvergedProjectType>CodeSharingStaticLibrary</ConvergedProjectType>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120_wp81</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120_wp81</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<PlatformToolset>v120_wp81</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<PlatformToolset>v120_wp81</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<Import Project="..\##NAME##.Shared\##NAME##.Shared.vcxitems" Label="Shared" />
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<GenerateManifest>false</GenerateManifest>
<OutDir>$(ProjectDir)$(Platform)\$(Configuration)\$(ProjectName)\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<GenerateManifest>false</GenerateManifest>
<OutDir>$(ProjectDir)$(Platform)\$(Configuration)\$(ProjectName)\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
<GenerateManifest>false</GenerateManifest>
<OutDir>$(ProjectDir)$(Platform)\$(Configuration)\$(ProjectName)\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
<GenerateManifest>false</GenerateManifest>
<OutDir>$(ProjectDir)$(Platform)\$(Configuration)\$(ProjectName)\</OutDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<CompileAsWinRT>false</CompileAsWinRT>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..\..\..\..\..\Sdk\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WINSTORE;_CRT_SECURE_NO_WARNINGS;CUSTOM_ALLOC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<CompileAsWinRT>false</CompileAsWinRT>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..\..\..\..\..\Sdk\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WINSTORE;_CRT_SECURE_NO_WARNINGS;CUSTOM_ALLOC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>