Skip to content

Commit

Permalink
WiX Toolset files and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-cel committed Jan 6, 2019
1 parent 9d64b09 commit e11822d
Show file tree
Hide file tree
Showing 6 changed files with 255 additions and 0 deletions.
23 changes: 23 additions & 0 deletions LICENSE.rtf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{\rtf1\ansi\deff3\adeflang1025
{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}{\f1\froman\fprq2\fcharset2 Symbol;}{\f2\fswiss\fprq2\fcharset0 Arial;}{\f3\froman\fprq2\fcharset0 Liberation Serif{\*\falt Times New Roman};}{\f4\fswiss\fprq2\fcharset0 Liberation Sans{\*\falt Arial};}{\f5\froman\fprq2\fcharset0 Times New Roman CE;}{\f6\froman\fprq2\fcharset0 Times New Roman;}{\f7\fnil\fprq2\fcharset0 Noto Sans CJK SC Regular;}{\f8\fnil\fprq2\fcharset0 Times New Roman;}{\f9\fnil\fprq2\fcharset0 Lohit Devanagari;}{\f10\fnil\fprq0\fcharset128 Lohit Devanagari;}}
{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}
{\stylesheet{\s0\snext0\nowidctlpar\hyphpar0\cf0\kerning1\dbch\af7\langfe2052\dbch\af9\afs24\alang1081\loch\f3\hich\af3\fs24\lang1045 Normal;}
{\s15\sbasedon0\snext16\sb240\sa120\keepn\dbch\af7\dbch\af9\afs28\loch\f4\fs28 Nag\u322\'3f\u243\'f3wek;}
{\s16\sbasedon0\snext16\sl276\slmult1\sb0\sa140 Tre\u347\'3f\u263\'3f tekstu;}
{\s17\sbasedon16\snext17\sl276\slmult1\sb0\sa140\dbch\af10 Lista;}
{\s18\sbasedon0\snext18\sb120\sa120\noline\i\dbch\af10\afs24\ai\fs24 Podpis;}
{\s19\sbasedon0\snext19\noline\dbch\af10 Indeks;}
}{\*\generator LibreOffice/6.0.7.3$Linux_X86_64 LibreOffice_project/00m0$Build-3}{\info{\creatim\yr0\mo0\dy0\hr0\min0}{\revtim\yr2019\mo1\dy6\hr16\min29}{\printim\yr0\mo0\dy0\hr0\min0}}{\*\userprops}\deftab720
\viewscale95
{\*\pgdsctbl
{\pgdsc0\pgdscuse451\pgwsxn12240\pghsxn15840\marglsxn1800\margrsxn1800\margtsxn1440\margbsxn1440\pgdscnxt0 Domy\u347\'3flny;}}
\formshade{\*\pgdscno0}\paperh15840\paperw12240\margl1800\margr1800\margt1440\margb1440\sectd\sbknone\sectunlocked1\pgndec\pgwsxn12240\pghsxn15840\marglsxn1800\margrsxn1800\margtsxn1440\margbsxn1440\ftnbj\ftnstart1\ftnrstcont\ftnnar\aenddoc\aftnrstcont\aftnstart1\aftnnrlc
{\*\ftnsep\chftnsep}\pgndec\pard\plain \s0\nowidctlpar\hyphpar0\cf0\kerning1\dbch\af7\langfe2052\dbch\af9\afs24\alang1081\loch\f3\hich\af3\fs24\lang1045\sl276\slmult1\sb0\sa140{\cf1\b0\kerning1\dbch\af8\langfe1045\dbch\af8\rtlch \ltrch\loch\fs20\lang1033\loch\f6\hich\af6
Copyright (C) 2019 Marek M. Cel}
\par \pard\plain \s0\nowidctlpar\hyphpar0\cf0\kerning1\dbch\af7\langfe2052\dbch\af9\afs24\alang1081\loch\f3\hich\af3\fs24\lang1045\sl276\slmult1\sb0\sa140{\cf1\b0\kerning1\dbch\af8\langfe1045\dbch\af8\rtlch \ltrch\loch\fs20\lang1033\loch\f6\hich\af6
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:}
\par \pard\plain \s0\nowidctlpar\hyphpar0\cf0\kerning1\dbch\af7\langfe2052\dbch\af9\afs24\alang1081\loch\f3\hich\af3\fs24\lang1045\sl276\slmult1\sb0\sa140{\cf1\b0\kerning1\dbch\af8\langfe1045\dbch\af8\rtlch \ltrch\loch\fs20\lang1033\loch\f6\hich\af6
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.}
\par \pard\plain \s0\nowidctlpar\hyphpar0\cf0\kerning1\dbch\af7\langfe2052\dbch\af9\afs24\alang1081\loch\f3\hich\af3\fs24\lang1045\sl276\slmult1\ql\sb0\sa140{\cf1\b0\kerning1\dbch\af8\langfe1045\dbch\af8\rtlch \ltrch\loch\fs20\lang1033\loch\f6\hich\af6
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.}
\par }
4 changes: 4 additions & 0 deletions data/cgi/entities/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*.osgb
# Except this file
!.gitignore
27 changes: 27 additions & 0 deletions run_wix.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
del wix_data.wxs
del wix_osg_plugins.wxs

call "%WIX%bin\heat.exe" dir ".\data" -gg -ke -sfrag -dr dir_mscsim -cg cg_mscsim_data -var var.SourceDir -template:fragment -out wix_data.wxs
call "%WIX%bin\heat.exe" dir "%OSG_ROOT%\bin\osgPlugins-3.2.0" -gg -ke -sfrag -dr dir_mscsim -cg cg_mscsim_osg_plugins -var var.SourceDir -template:fragment -out wix_osg_plugins.wxs

del Microsoft_VC90_CRT_x86.msm
copy "C:\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC90_CRT_x86.msm" Microsoft_VC90_CRT_x86.msm

del wix_data.wixobj
del wix_main.wixobj
del wix_osg.wixobj
del wix_osg_plugins.wixobj
del wix_qt.wixobj

del mscsim-0.1-win32.msi
del mscsim-0.1-win32.wixpdb

call "%WIX%bin\candle.exe" -ext WiXUtilExtension -dSourceDir=".\data" wix_data.wxs
call "%WIX%bin\candle.exe" -ext WiXUtilExtension wix_main.wxs
call "%WIX%bin\candle.exe" -ext WiXUtilExtension wix_osg.wxs
call "%WIX%bin\candle.exe" -ext WiXUtilExtension -dSourceDir="%OSG_ROOT%\bin\osgPlugins-3.2.0" wix_osg_plugins.wxs
call "%WIX%bin\candle.exe" -ext WiXUtilExtension wix_qt.wxs

call "%WIX%bin\light.exe" -ext WiXUtilExtension -ext WixUIExtension -cultures:en-us -out mscsim-0.1-win32.msi wix_data.wixobj wix_main.wixobj wix_osg.wixobj wix_osg_plugins.wixobj wix_qt.wixobj

pause
87 changes: 87 additions & 0 deletions wix_main.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version="1.0"?>
<Wix
xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Product
Id="{d74b09d7-f321-43c4-92cf-5ea7fa595ae6}"
Name="MScSim"
Language="1033"
Version="0.1"
Manufacturer="Marek Cel"
UpgradeCode="{7d804395-e40a-4b7f-93b5-346065617d41}">

<Package
Description="MScSim Windows Installer Package"
Manufacturer="Marek Cel (marekcel.pl)"
InstallerVersion="300"
Compressed="yes" />

<Media Id="1" Cabinet="mscsim.cab" EmbedCab="yes" />

<WixVariable Id="WixUILicenseRtf" Value="LICENSE.rtf" />

<Directory Id="TARGETDIR" Name="SourceDir">

<!-- Visual C++ 2008 Redistributable Merge Module -->
<Merge Id="VCRedist" SourceFile="Microsoft_VC90_CRT_x86.msm" DiskId="1" Language="0"/>

<!-- installation dir -->
<Directory Id="ProgramFilesFolder" Name="PFiles">
<Directory Id="dir_mscsim" Name="MScSim">

<!-- sim.exe -->
<Component Id="dir_mscsim_sim" Guid="{bc24fd67-96d0-4cd0-84bd-6ae2197ca69e}">
<File Id="dir_mscsim_sim_exe" Name="sim.exe" DiskId="1" Source="bin\sim.exe" />
</Component>

</Directory>
</Directory>

<!-- start menu shortcuts -->
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="MscSim">
<Component Id="menu_shortcuts" Guid="{ff1c553d-9bda-429c-be7d-c7f6db2da635}">
<Shortcut
Id="menu_sim"
Name="MscSim"
Icon="sim.ico"
Description="Flight Simulation"
Target="[dir_mscsim]\sim.exe"
WorkingDirectory="dir_mscsim" />
<Shortcut
Id="menu_unistall"
Name="Uninstall MScSim"
Target="[SystemFolder]msiexec.exe"
Arguments="/x [ProductCode]"
Description="Uninstall" />
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</Directory>
</Directory>

</Directory>

<!-- main program -->
<Feature Id="mscsim_main" Title="MScSim" Level="1">
<ComponentGroupRef Id="cg_mscsim_data" /> <!-- data -->
<ComponentGroupRef Id="cg_mscsim_osg" /> <!-- OSG libs -->
<ComponentGroupRef Id="cg_mscsim_qt" /> <!-- Qt libs -->

<ComponentRef Id="dir_mscsim_sim" /> <!-- sim.exe -->

<ComponentRef Id="menu_shortcuts" /> <!-- start menu shortcuts -->
</Feature>

<!-- Visual C++ 2008 Redistributable Merge Module -->
<Feature Id="VCRedist" Title="Visual C++ 8.0 Runtime" AllowAdvertise="no" Display="hidden" Level="1">
<MergeRef Id="VCRedist"/>
</Feature>

<Property Id="WIXUI_INSTALLDIR" Value="dir_mscsim" />
<UIRef Id="WixUI_InstallDir" />

<Icon Id="sim.ico" SourceFile="src/sim.ico" />

</Product>
</Wix>
76 changes: 76 additions & 0 deletions wix_osg.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

<Fragment>
<DirectoryRef Id="dir_mscsim">
<Directory Id="dir_mscsim_osgPlugins_3_2_0" Name="osgPlugins-3.2.0" />
<Component Id="dir_mscsim_libpng15" Guid="{8efafeaf-428a-4c04-96ca-53f67ee7e5ef}">
<File Id="dir_mscsim_libpng15_dll" Name="libpng15.dll" DiskId="1" Source="$(env.OSG_ROOT)\bin\libpng15.dll" />
</Component>
<Component Id="dir_mscsim_libxml2" Guid="{04e935d2-5df5-4dd6-a55e-1eb47d6670d3}">
<File Id="dir_mscsim_libxml2_dll" Name="libxml2.dll" DiskId="1" Source="$(env.OSG_ROOT)\bin\libxml2.dll" />
</Component>
<Component Id="dir_mscsim_osg100_osg" Guid="{b03b2e4f-38c4-4dab-9359-2acafe57f3e7}">
<File Id="dir_mscsim_osg100_osg_dll" Name="osg100-osg.dll" DiskId="1" Source="$(env.OSG_ROOT)\bin\osg100-osg.dll" />
</Component>
<Component Id="dir_mscsim_osg100_osgDB" Guid="{ea33103b-feea-4c6d-80ad-e6d74f6cc574}">
<File Id="dir_mscsim_osg100_osgDB_dll" Name="osg100-osgDB.dll" DiskId="1" Source="$(env.OSG_ROOT)\bin\osg100-osgDB.dll" />
</Component>
<Component Id="dir_mscsim_osg100_osgGA" Guid="{192bdfc3-ae28-45ef-976c-0dec6ff16370}">
<File Id="dir_mscsim_osg100_osgGA_dll" Name="osg100-osgGA.dll" DiskId="1" Source="$(env.OSG_ROOT)\bin\osg100-osgGA.dll" />
</Component>
<Component Id="dir_mscsim_osg100_osgParticle" Guid="{f54cc818-0368-48ed-8683-77e80a0fe844}">
<File Id="dir_mscsim_osg100_osgParticle_dll" Name="osg100-osgParticle.dll" DiskId="1" Source="$(env.OSG_ROOT)\bin\osg100-osgParticle.dll" />
</Component>
<Component Id="dir_mscsim_osg100_osgQt" Guid="{c8568b90-dada-4cc8-8ecf-f32b414aa514}">
<File Id="dir_mscsim_osg100_osgQt_dll" Name="osg100-osgQt.dll" DiskId="1" Source="$(env.OSG_ROOT)\bin\osg100-osgQt.dll" />
</Component>
<Component Id="dir_mscsim_osg100_osgSim" Guid="{e84cc1e7-d967-47bd-9328-154f792e4295}">
<File Id="dir_mscsim_osg100_osgSim_dll" Name="osg100-osgSim.dll" DiskId="1" Source="$(env.OSG_ROOT)\bin\osg100-osgSim.dll" />
</Component>
<Component Id="dir_mscsim_osg100_osgTerrain" Guid="{02fc895e-f680-4e68-886e-b9f377154308}">
<File Id="dir_mscsim_osg100_osgTerrain_dll" Name="osg100-osgTerrain.dll" DiskId="1" Source="$(env.OSG_ROOT)\bin\osg100-osgTerrain.dll" />
</Component>
<Component Id="dir_mscsim_osg100_osgText" Guid="{cebba834-4964-485c-afdb-ef43b2cac63b}">
<File Id="dir_mscsim_osg100_osgText_dll" Name="osg100-osgText.dll" DiskId="1" Source="$(env.OSG_ROOT)\bin\osg100-osgText.dll" />
</Component>
<Component Id="dir_mscsim_osg100_osgUtil" Guid="{db575827-2aa3-4330-b2db-9bc943ed4d99}">
<File Id="dir_mscsim_osg100_osgUtil_dll" Name="osg100-osgUtil.dll" DiskId="1" Source="$(env.OSG_ROOT)\bin\osg100-osgUtil.dll" />
</Component>
<Component Id="dir_mscsim_osg100_osgViewer" Guid="{835996a7-c72a-4c36-8f33-7febb14e8fc1}">
<File Id="dir_mscsim_osg100_osgViewer_dll" Name="osg100-osgViewer.dll" DiskId="1" Source="$(env.OSG_ROOT)\bin\osg100-osgViewer.dll" />
</Component>
<Component Id="dir_mscsim_osg100_osgWidget" Guid="{0f3b7684-26aa-484f-ad38-85b7ee73842c}">
<File Id="dir_mscsim_osg100_osgWidget_dll" Name="osg100-osgWidget.dll" DiskId="1" Source="$(env.OSG_ROOT)\bin\osg100-osgWidget.dll" />
</Component>
<Component Id="dir_mscsim_ot13_OpenThreads" Guid="{872caf47-5baf-493e-9451-467584e928f7}">
<File Id="dir_mscsim_ot13_OpenThreads_dll" Name="ot13-OpenThreads.dll" DiskId="1" Source="$(env.OSG_ROOT)\bin\ot13-OpenThreads.dll" />
</Component>
<Component Id="dir_mscsim_zlib1" Guid="{159d42c6-e7cd-48e4-a75a-49b98f54cf73}">
<File Id="dir_mscsim_zlib1_dll" Name="zlib1.dll" DiskId="1" Source="$(env.OSG_ROOT)\bin\zlib1.dll" />
</Component>
</DirectoryRef>
</Fragment>

<Fragment>
<ComponentGroup Id="cg_mscsim_osg">
<ComponentGroupRef Id="cg_mscsim_osg_plugins" />
<ComponentRef Id="dir_mscsim_libpng15" />
<ComponentRef Id="dir_mscsim_libxml2" />
<ComponentRef Id="dir_mscsim_osg100_osg" />
<ComponentRef Id="dir_mscsim_osg100_osgDB" />
<ComponentRef Id="dir_mscsim_osg100_osgGA" />
<ComponentRef Id="dir_mscsim_osg100_osgParticle" />
<ComponentRef Id="dir_mscsim_osg100_osgQt" />
<ComponentRef Id="dir_mscsim_osg100_osgSim" />
<ComponentRef Id="dir_mscsim_osg100_osgTerrain" />
<ComponentRef Id="dir_mscsim_osg100_osgText" />
<ComponentRef Id="dir_mscsim_osg100_osgUtil" />
<ComponentRef Id="dir_mscsim_osg100_osgViewer" />
<ComponentRef Id="dir_mscsim_osg100_osgWidget" />
<ComponentRef Id="dir_mscsim_ot13_OpenThreads" />
<ComponentRef Id="dir_mscsim_zlib1" />
</ComponentGroup>
</Fragment>

</Wix>
38 changes: 38 additions & 0 deletions wix_qt.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

<Fragment>
<DirectoryRef Id="dir_mscsim">
<Component Id="dir_mscsim_qtcore4" Guid="{1753ce9f-ea7e-4007-ad5f-361444d13bd9}">
<File Id="dir_mscsim_qtcore4_dll" Name="QtCore4.dll" DiskId="1" Source="$(env.QTDIR)\bin\QtCore4.dll" />
</Component>
<Component Id="dir_mscsim_qtgui4" Guid="{3b388d5c-e497-42f2-a282-4225c9cd0bba}">
<File Id="dir_mscsim_qtgui4_dll" Name="QtGui4.dll" DiskId="1" Source="$(env.QTDIR)\bin\QtGui4.dll" />
</Component>
<Component Id="dir_mscsim_qtnetwork4" Guid="{257aec74-5227-4670-bc4d-35e0c5ba7556}">
<File Id="dir_mscsim_qtnetwork4_dll" Name="QtNetwork4.dll" DiskId="1" Source="$(env.QTDIR)\bin\QtNetwork4.dll" />
</Component>
<Component Id="dir_mscsim_qtopengl4" Guid="{efd334fc-b55b-42e0-bf9f-a8a8195ec658}">
<File Id="dir_mscsim_qtopengl4_dll" Name="QtOpenGL4.dll" DiskId="1" Source="$(env.QTDIR)\bin\QtOpenGL4.dll" />
</Component>
<Component Id="dir_mscsim_qtsvg4" Guid="{d44e9550-f073-4118-8d49-b94773411f95}">
<File Id="dir_mscsim_qtsvg4_dll" Name="QtSvg4.dll" DiskId="1" Source="$(env.QTDIR)\bin\QtSvg4.dll" />
</Component>
<Component Id="dir_mscsim_qtxml4" Guid="{483c28f8-a0d0-41e0-ac84-1713ed4cd1fa}">
<File Id="dir_mscsim_qtxml4_dll" Name="QtXml4.dll" DiskId="1" Source="$(env.QTDIR)\bin\QtXml4.dll" />
</Component>
</DirectoryRef>
</Fragment>

<Fragment>
<ComponentGroup Id="cg_mscsim_qt">
<ComponentRef Id="dir_mscsim_qtcore4" />
<ComponentRef Id="dir_mscsim_qtgui4" />
<ComponentRef Id="dir_mscsim_qtnetwork4" />
<ComponentRef Id="dir_mscsim_qtopengl4" />
<ComponentRef Id="dir_mscsim_qtsvg4" />
<ComponentRef Id="dir_mscsim_qtxml4" />
</ComponentGroup>
</Fragment>

</Wix>

0 comments on commit e11822d

Please sign in to comment.