source: launchers/macosx/obj-cpp/build.ninja @ 21b3864

Last change on this file since 21b3864 was 21b3864, checked in by meeh <meeh@…>, 3 years ago

Moved some logic to C++, which will extract i2p if it's not already,
and then secondly fire up the router in a second java process when
extraction is completed. Gonna use "optional" type in C++ to make
global variables a bit less painful to use.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1cxx = clang++
2cflags = -std=c++14 -g -Wall -I./include -I/usr/local/include -I/usr/include -Wno-unused-variable -mmacosx-version-min=10.10
3ldflags = -framework CoreFoundation -framework Foundation -framework Cocoa -g -rdynamic
4
5
6pool link_pool
7  depth = 4
8
9rule cxx
10  command = $cxx $cflags -c $in -o $out
11  description = CC $out
12
13rule link
14  command = $cxx $ldflags -o $out $in
15  description = LINK $out
16  pool = link_pool
17
18rule ar
19  command = ar crsT $out $in
20  description = AR $out
21
22rule cleanup
23  command = rm -fr *.o clauncher I2PLauncher.app
24
25# TODO: There must exists a cleaner way to solve this.
26rule bundledir
27  command = mkdir -p I2PLauncher.app/Contents/{MacOS,Resources,Frameworks} $
28    && cp Info.plist I2PLauncher.app/Contents/Info.plist $
29    && cp base.zip I2PLauncher.app/Contents/Resources/base.zip
30
31rule copytobundledir
32  command = cp clauncher I2PLauncher.app/Contents/MacOS/I2PLauncher
33
34rule copyimgtobundle
35  command = cp ItoopieTransparent.png I2PLauncher.app/Contents/Resources/ItoopieTransparent.png
36
37rule builddir
38  command = mkdir -p build
39
40build main.o: cxx main.mm
41build StatusItemButton.o: cxx StatusItemButton.mm
42build JavaRunner.o: cxx JavaRunner.cpp
43
44build clean: cleanup
45
46build bundle: bundledir
47build copytobundle: copytobundledir | bundle clauncher
48
49build clauncher: link main.o StatusItemButton.o JavaRunner.o
50
51build appbundle: copyimgtobundle | clauncher bundle copytobundle
52
53default appbundle
Note: See TracBrowser for help on using the repository browser.