]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - setup/PluginSDK/BuildSDK
...
[xonotic/netradiant.git] / setup / PluginSDK / BuildSDK
1 #!/bin/sh
2
3 # what I use to run this script on my win32 box:
4 # have cygwin, perl (ActiveState) and the cygwin zip utility
5 # for zip: http://www.hirmke.de/software/develop/gnuwin32/cygwin/porters/Hirmke_Michael/GNUWin32-links.html#zip-2.3%20(cygwin1.1)
6
7 # FIXME: I'd like to have this same script used for both platforms
8 # for the SDK we recreate a smaller tree and only put the stuff we want
9 # what potentially changes across platforms is the binaries and the src/ subtree for gtk stuff
10
11 # proceed in order:
12
13 # include directory for all plugin API
14 mkdir GtkRadiant
15 mkdir GtkRadiant/include
16 rm -rf ./GtkRadiant/include/*
17 echo "Copying GtkRadiant API headers"
18 cp ../../include/* ./GtkRadiant/include
19
20 # now fill in the plugins menu:
21 # copy common, textool and the sample plugin
22 mkdir GtkRadiant
23 mkdir GtkRadiant/plugins
24 mkdir GtkRadiant/plugins/common
25 mkdir GtkRadiant/plugins/textool
26 mkdir GtkRadiant/plugins/sample
27 rm -rf ./GtkRadiant/plugins/*
28 echo "Copying TexTool"
29 cp -R ../../plugins/textool ./GtkRadiant/plugins/textool
30 cp -R ../../plugins/common ./GtkRadiant/plugins/common
31 echo "Copying Sample plugin"
32 cp -R ../../plugins/sample ./GtkRadiant/plugins/sample
33
34 # get gtkradiant binary (you know you want it)
35 # FIXME: for win32 SDK only
36 #cp ../radiant/Release/Q3Radiant.exe GtkRadiant.exe
37
38 # grab the gtk devel package
39 # FIXME: for win32 SDK only
40 echo "Updating src/"
41 echo "NOTE: check we are using the latest gtk dev packages"
42 echo "NOTE: we are not putting our patched versions in"
43 rm -rf src
44 unzip /cygdrive/c/Download/Gtk-20001023/glib-dev-20001023.zip
45 unzip /cygdrive/c/Download/Gtk-20001023/gtk+-dev-20000722.zip
46 unzip /cygdrive/c/Download/Gtk-20001023/libiconv-dev-20001007.zip
47 unzip /cygdrive/c/Download/Gtk-20001023/extralibs-dev-20001007.zip
48 # grab the src/build directory, we use it with the cygwin makefiles
49 cp -R ../../../src/build src
50
51 # build the SDK
52 #echo "Check the sample/ directory is clean"
53 #zip -r PluginSDK.zip src private sample README.html GtkRadiant.exe