added win32 port related files, for time being use CodeBlocks project file
authorafaber <afaber@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 7 Jan 2008 22:11:09 +0000 (22:11 +0000)
committerafaber <afaber@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 7 Jan 2008 22:11:09 +0000 (22:11 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@733 ffa7fe5e-494d-0410-b361-a75ebd5db220

31 files changed:
projs/CodeBlocks/Navit.cbp [new file with mode: 0644]
projs/CodeBlocks/Navit.new.cbp [new file with mode: 0644]
projs/CodeBlocks/Navit.workspace [new file with mode: 0644]
projs/CodeBlocks/NavitCommonLib.cbp [new file with mode: 0644]
projs/CodeBlocks/Navit_no_plugin.cbp [new file with mode: 0644]
projs/CodeBlocks/Osm2Navit.cbp [new file with mode: 0644]
projs/CodeBlocks/Win32Extra/LiberationSans-Regular.ttf [new file with mode: 0644]
projs/CodeBlocks/Win32Extra/X11/XF86keysym.h [new file with mode: 0644]
projs/CodeBlocks/Win32Extra/builtin.c [new file with mode: 0644]
projs/CodeBlocks/Win32Extra/config.h [new file with mode: 0644]
projs/CodeBlocks/Win32Extra/serial_io.c [new file with mode: 0644]
projs/CodeBlocks/Win32Extra/serial_io.h [new file with mode: 0644]
projs/CodeBlocks/Win32Extra/setenv.c [new file with mode: 0644]
projs/CodeBlocks/Win32Extra/setenv.h [new file with mode: 0644]
projs/CodeBlocks/Win32Extra/sys/mman.c [new file with mode: 0644]
projs/CodeBlocks/Win32Extra/sys/mman.h [new file with mode: 0644]
projs/CodeBlocks/Win32Extra/wordexp.c [new file with mode: 0644]
projs/CodeBlocks/Win32Extra/wordexp.h [new file with mode: 0644]
projs/CodeBlocks/binfile.cbp [new file with mode: 0644]
projs/CodeBlocks/data_poi_geodownload.cbp [new file with mode: 0644]
projs/CodeBlocks/fib-1.1.cbp [new file with mode: 0644]
projs/CodeBlocks/gtk_graphics.cbp [new file with mode: 0644]
projs/CodeBlocks/gtk_gui.cbp [new file with mode: 0644]
projs/CodeBlocks/gui_sdl.cbp [new file with mode: 0644]
projs/CodeBlocks/libgarmin.cbp [new file with mode: 0644]
projs/CodeBlocks/make_builtin [new file with mode: 0644]
projs/CodeBlocks/makefile_langfiles [new file with mode: 0644]
projs/CodeBlocks/mdb.cbp [new file with mode: 0644]
projs/CodeBlocks/vehicle_demo.cbp [new file with mode: 0644]
projs/CodeBlocks/vehicle_file.cbp [new file with mode: 0644]
src/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c

diff --git a/projs/CodeBlocks/Navit.cbp b/projs/CodeBlocks/Navit.cbp
new file mode 100644 (file)
index 0000000..0ed7787
--- /dev/null
@@ -0,0 +1,274 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+       <FileVersion major="1" minor="6" />
+       <Project>
+               <Option title="Navit" />
+               <Option pch_mode="2" />
+               <Option compiler="gcc" />
+               <Build>
+                       <Target title="Debug">
+                               <Option output="bin\Debug\Navi" prefix_auto="1" extension_auto="1" />
+                               <Option object_output="obj\Debug\" />
+                               <Option type="1" />
+                               <Option compiler="gcc" />
+                               <Option use_console_runner="0" />
+                               <Compiler>
+                                       <Add option="-g" />
+                               </Compiler>
+                               <Linker>
+                                       <Add library="bin\Debug\libfib.a" />
+                                       <Add library="bin\Debug\libvehicle_file.la" />
+                                       <Add library="bin\Debug\libdata_binfile.la" />
+                                       <Add library="bin\Debug\libgtk_graphics.la" />
+                                       <Add library="bin\Debug\libgtk_gui.la" />
+                                       <Add library="bin\Debug\libvehicle_demo.la" />
+                                       <Add library="bin\Debug\libdata_poi_geodownload.la" />
+                                       <Add library="bin\Debug\libmdb.a" />
+                                       <Add library="user32" />
+                                       <Add library="gtk-win32-2.0" />
+                                       <Add library="gdk-win32-2.0" />
+                                       <Add library="gdk_pixbuf-2.0" />
+                                       <Add library="freetype" />
+                                       <Add library="z" />
+                                       <Add library="gobject-2.0" />
+                                       <Add library="gmodule-2.0" />
+                                       <Add library="glib-2.0" />
+                                       <Add library="intl" />
+                                       <Add directory="bin\Debug" />
+                               </Linker>
+                       </Target>
+                       <Target title="Release">
+                               <Option output="bin\Release\Navit" prefix_auto="1" extension_auto="1" />
+                               <Option object_output="obj\Release\" />
+                               <Option type="1" />
+                               <Option compiler="gcc" />
+                               <Option use_console_runner="0" />
+                               <Compiler>
+                                       <Add option="-O2" />
+                               </Compiler>
+                               <Linker>
+                                       <Add option="-s" />
+                                       <Add library="bin\Release\libfib.a" />
+                                       <Add library="bin\Release\libvehicle_file.la" />
+                                       <Add library="bin\Release\libdata_binfile.la" />
+                                       <Add library="bin\Release\libgtk_graphics.la" />
+                                       <Add library="bin\Release\libgtk_gui.la" />
+                                       <Add library="user32" />
+                                       <Add library="gtk-win32-2.0" />
+                                       <Add library="gdk-win32-2.0" />
+                                       <Add library="gdk_pixbuf-2.0" />
+                                       <Add library="freetype" />
+                                       <Add library="z" />
+                                       <Add library="gobject-2.0" />
+                                       <Add library="gmodule-2.0" />
+                                       <Add library="glib-2.0" />
+                                       <Add library="intl" />
+                               </Linker>
+                       </Target>
+               </Build>
+               <Compiler>
+                       <Add option="-Wall" />
+                       <Add option="-mms-bitfields" />
+                       <Add option="-DMODULE=Navit" />
+                       <Add option='-DPREFIX=\&quot;/usr/local\&quot;' />
+                       <Add directory="D:\gtk\include" />
+                       <Add directory="D:\gtk\include\gtk-2.0" />
+                       <Add directory="D:\gtk\include\glib-2.0" />
+                       <Add directory="D:\gtk\lib\gtk-2.0\include" />
+                       <Add directory="D:\gtk\lib\glib-2.0\include" />
+                       <Add directory="D:\gtk\include\cairo" />
+                       <Add directory="D:\gtk\include\pango-1.0" />
+                       <Add directory="D:\gtk\include\atk-1.0" />
+                       <Add directory="..\..\src" />
+                       <Add directory="Win32Extra" />
+                       <Add directory="..\..\src\fib-1.1" />
+                       <Add directory="D:\msys\1.10\freetype-2.3.5\include" />
+               </Compiler>
+               <Linker>
+                       <Add directory="d:\gtk\lib" />
+                       <Add directory="D:\msys\1.10\freetype-2.3.5\objs\.libs" />
+               </Linker>
+               <Unit filename="Win32Extra\builtin.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="Win32Extra\config.h" />
+               <Unit filename="Win32Extra\serial_io.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="Win32Extra\serial_io.h" />
+               <Unit filename="Win32Extra\setenv.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="Win32Extra\setenv.h" />
+               <Unit filename="Win32Extra\wordexp.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="Win32Extra\wordexp.h" />
+               <Unit filename="..\..\src\Makefile" />
+               <Unit filename="..\..\src\Makefile.am" />
+               <Unit filename="..\..\src\Makefile.in" />
+               <Unit filename="..\..\src\attr.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\attr.h" />
+               <Unit filename="..\..\src\attr_def.h" />
+               <Unit filename="..\..\src\callback.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\callback.h" />
+               <Unit filename="..\..\src\color.h" />
+               <Unit filename="..\..\src\compass.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\compass.h" />
+               <Unit filename="..\..\src\coord.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\coord.h" />
+               <Unit filename="..\..\src\country.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\country.h" />
+               <Unit filename="..\..\src\cursor.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\cursor.h" />
+               <Unit filename="..\..\src\data.h" />
+               <Unit filename="..\..\src\data_window.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data_window.h" />
+               <Unit filename="..\..\src\data_window_int.h" />
+               <Unit filename="..\..\src\debug.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\debug.h" />
+               <Unit filename="..\..\src\destination.h" />
+               <Unit filename="..\..\src\draw_info.h" />
+               <Unit filename="..\..\src\file.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\file.h" />
+               <Unit filename="..\..\src\graphics.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\graphics.h" />
+               <Unit filename="..\..\src\gtkext.h" />
+               <Unit filename="..\..\src\gui.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\gui.h" />
+               <Unit filename="..\..\src\gui\gtk\gui_gtk.h" />
+               <Unit filename="..\..\src\item.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\item.h" />
+               <Unit filename="..\..\src\item_def.h" />
+               <Unit filename="..\..\src\layer.h" />
+               <Unit filename="..\..\src\layout.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\layout.h" />
+               <Unit filename="..\..\src\log.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\log.h" />
+               <Unit filename="..\..\src\main.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\main.h" />
+               <Unit filename="..\..\src\map-share.h" />
+               <Unit filename="..\..\src\map.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\map.h" />
+               <Unit filename="..\..\src\map_data.h" />
+               <Unit filename="..\..\src\mapset.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\mapset.h" />
+               <Unit filename="..\..\src\maptype.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\maptype.h" />
+               <Unit filename="..\..\src\menu.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\menu.h" />
+               <Unit filename="..\..\src\navigation.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\navigation.h" />
+               <Unit filename="..\..\src\navit.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\navit.h" />
+               <Unit filename="..\..\src\navit.xml" />
+               <Unit filename="..\..\src\osd.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\osd.h" />
+               <Unit filename="..\..\src\param.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\param.h" />
+               <Unit filename="..\..\src\phrase.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\phrase.h" />
+               <Unit filename="..\..\src\plugin.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\plugin.h" />
+               <Unit filename="..\..\src\plugin_def.h" />
+               <Unit filename="..\..\src\point.h" />
+               <Unit filename="..\..\src\popup.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\popup.h" />
+               <Unit filename="..\..\src\profile.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\profile.h" />
+               <Unit filename="..\..\src\projection.h" />
+               <Unit filename="..\..\src\route.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\route.h" />
+               <Unit filename="..\..\src\search.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\search.h" />
+               <Unit filename="..\..\src\speech.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\speech.h" />
+               <Unit filename="..\..\src\statusbar.h" />
+               <Unit filename="..\..\src\track.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\track.h" />
+               <Unit filename="..\..\src\transform.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\transform.h" />
+               <Unit filename="..\..\src\util.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\util.h" />
+               <Unit filename="..\..\src\vehicle.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\vehicle.h" />
+               <Unit filename="..\..\src\xmlconfig.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\xmlconfig.h" />
+               <Unit filename="..\..\src\zipfile.h" />
+               <Extensions>
+                       <code_completion />
+                       <envvars />
+                       <debugger />
+               </Extensions>
+       </Project>
+</CodeBlocks_project_file>
diff --git a/projs/CodeBlocks/Navit.new.cbp b/projs/CodeBlocks/Navit.new.cbp
new file mode 100644 (file)
index 0000000..5391153
--- /dev/null
@@ -0,0 +1,256 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+       <FileVersion major="1" minor="6" />
+       <Project>
+               <Option title="Navit" />
+               <Option pch_mode="2" />
+               <Option compiler="gcc" />
+               <Build>
+                       <Target title="Debug">
+                               <Option output="bin\Debug\Navi" prefix_auto="1" extension_auto="1" />
+                               <Option object_output="obj\Debug\" />
+                               <Option type="1" />
+                               <Option compiler="gcc" />
+                               <Option use_console_runner="0" />
+                               <Compiler>
+                                       <Add option="-g" />
+                               </Compiler>
+                               <Linker>
+                                       <Add directory="bin\Debug" />
+                               </Linker>
+                       </Target>
+                       <Target title="Release">
+                               <Option output="bin\Release\Navit" prefix_auto="1" extension_auto="1" />
+                               <Option object_output="obj\Release\" />
+                               <Option type="1" />
+                               <Option compiler="gcc" />
+                               <Option use_console_runner="0" />
+                               <Compiler>
+                                       <Add option="-O2" />
+                               </Compiler>
+                               <Linker>
+                                       <Add option="-s" />
+                               </Linker>
+                       </Target>
+               </Build>
+               <Compiler>
+                       <Add option="-Wall" />
+                       <Add option="-mms-bitfields" />
+                       <Add option="-DMODULE=Navit" />
+                       <Add option='-DPREFIX=\&quot;/usr/local\&quot;' />
+                       <Add directory="D:\gtk\include" />
+                       <Add directory="D:\gtk\include\gtk-2.0" />
+                       <Add directory="D:\gtk\include\glib-2.0" />
+                       <Add directory="D:\gtk\lib\gtk-2.0\include" />
+                       <Add directory="D:\gtk\lib\glib-2.0\include" />
+                       <Add directory="D:\gtk\include\cairo" />
+                       <Add directory="D:\gtk\include\pango-1.0" />
+                       <Add directory="D:\gtk\include\atk-1.0" />
+                       <Add directory="..\..\src" />
+                       <Add directory="Win32Extra" />
+                       <Add directory="..\..\src\fib-1.1" />
+                       <Add directory="D:\msys\1.10\freetype-2.3.5\include" />
+               </Compiler>
+               <Linker>
+                       <Add library="bin\Debug\libgtk_graphics.la" />
+                       <Add library="bin\Debug\libgtk_gui.la" />
+                       <Add library="bin\Debug\libdata_binfile.la" />
+                       <Add library="user32" />
+                       <Add library="gtk-win32-2.0" />
+                       <Add library="gdk-win32-2.0" />
+                       <Add library="gdk_pixbuf-2.0" />
+                       <Add library="fib" />
+                       <Add library="freetype" />
+                       <Add library="z" />
+                       <Add library="gobject-2.0" />
+                       <Add library="gmodule-2.0" />
+                       <Add library="glib-2.0" />
+                       <Add library="intl" />
+                       <Add library="bin\Debug\libvehicle_file.la" />
+                       <Add directory="d:\gtk\lib" />
+                       <Add directory="D:\msys\1.10\freetype-2.3.5\objs\.libs" />
+               </Linker>
+               <Unit filename="Win32Extra\config.h" />
+               <Unit filename="Win32Extra\serial_io.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="Win32Extra\serial_io.h" />
+               <Unit filename="Win32Extra\setenv.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="Win32Extra\setenv.h" />
+               <Unit filename="Win32Extra\wordexp.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="Win32Extra\wordexp.h" />
+               <Unit filename="..\..\src\Makefile" />
+               <Unit filename="..\..\src\Makefile.am" />
+               <Unit filename="..\..\src\Makefile.in" />
+               <Unit filename="..\..\src\attr.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\attr.h" />
+               <Unit filename="..\..\src\attr_def.h" />
+               <Unit filename="..\..\src\builtin.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\callback.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\callback.h" />
+               <Unit filename="..\..\src\color.h" />
+               <Unit filename="..\..\src\compass.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\compass.h" />
+               <Unit filename="..\..\src\coord.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\coord.h" />
+               <Unit filename="..\..\src\country.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\country.h" />
+               <Unit filename="..\..\src\cursor.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\cursor.h" />
+               <Unit filename="..\..\src\data.h" />
+               <Unit filename="..\..\src\data_window.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data_window.h" />
+               <Unit filename="..\..\src\data_window_int.h" />
+               <Unit filename="..\..\src\debug.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\debug.h" />
+               <Unit filename="..\..\src\destination.h" />
+               <Unit filename="..\..\src\draw_info.h" />
+               <Unit filename="..\..\src\file.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\file.h" />
+               <Unit filename="..\..\src\graphics.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\graphics.h" />
+               <Unit filename="..\..\src\gtkext.h" />
+               <Unit filename="..\..\src\gui.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\gui.h" />
+               <Unit filename="..\..\src\gui\gtk\gui_gtk.h" />
+               <Unit filename="..\..\src\item.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\item.h" />
+               <Unit filename="..\..\src\item_def.h" />
+               <Unit filename="..\..\src\layer.h" />
+               <Unit filename="..\..\src\layout.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\layout.h" />
+               <Unit filename="..\..\src\log.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\log.h" />
+               <Unit filename="..\..\src\main.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\main.h" />
+               <Unit filename="..\..\src\map-share.h" />
+               <Unit filename="..\..\src\map.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\map.h" />
+               <Unit filename="..\..\src\map_data.h" />
+               <Unit filename="..\..\src\mapset.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\mapset.h" />
+               <Unit filename="..\..\src\maptype.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\maptype.h" />
+               <Unit filename="..\..\src\menu.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\menu.h" />
+               <Unit filename="..\..\src\navigation.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\navigation.h" />
+               <Unit filename="..\..\src\navit.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\navit.h" />
+               <Unit filename="..\..\src\navit.xml" />
+               <Unit filename="..\..\src\osd.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\osd.h" />
+               <Unit filename="..\..\src\param.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\param.h" />
+               <Unit filename="..\..\src\phrase.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\phrase.h" />
+               <Unit filename="..\..\src\plugin.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\plugin.h" />
+               <Unit filename="..\..\src\plugin_def.h" />
+               <Unit filename="..\..\src\point.h" />
+               <Unit filename="..\..\src\popup.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\popup.h" />
+               <Unit filename="..\..\src\profile.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\profile.h" />
+               <Unit filename="..\..\src\projection.h" />
+               <Unit filename="..\..\src\route.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\route.h" />
+               <Unit filename="..\..\src\search.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\search.h" />
+               <Unit filename="..\..\src\speech.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\speech.h" />
+               <Unit filename="..\..\src\statusbar.h" />
+               <Unit filename="..\..\src\track.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\track.h" />
+               <Unit filename="..\..\src\transform.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\transform.h" />
+               <Unit filename="..\..\src\util.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\util.h" />
+               <Unit filename="..\..\src\vehicle.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\vehicle.h" />
+               <Unit filename="..\..\src\xmlconfig.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\xmlconfig.h" />
+               <Unit filename="..\..\src\zipfile.h" />
+               <Extensions>
+                       <code_completion />
+                       <envvars />
+                       <debugger />
+               </Extensions>
+       </Project>
+</CodeBlocks_project_file>
diff --git a/projs/CodeBlocks/Navit.workspace b/projs/CodeBlocks/Navit.workspace
new file mode 100644 (file)
index 0000000..ded1d38
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_workspace_file>
+       <Workspace title="Navit">
+               <Project filename="fib-1.1.cbp" />
+               <Project filename="mdb.cbp" />
+               <Project filename="data_poi_geodownload.cbp">
+                       <Depends filename="mdb.cbp" />
+               </Project>
+               <Project filename="binfile.cbp" />
+               <Project filename="vehicle_demo.cbp" />
+               <Project filename="vehicle_file.cbp" />
+               <Project filename="Osm2Navit.cbp" />
+               <Project filename="Navit.cbp" active="1">
+                       <Depends filename="fib-1.1.cbp" />
+                       <Depends filename="mdb.cbp" />
+                       <Depends filename="data_poi_geodownload.cbp" />
+                       <Depends filename="binfile.cbp" />
+                       <Depends filename="vehicle_demo.cbp" />
+                       <Depends filename="vehicle_file.cbp" />
+                       <Depends filename="gtk_gui.cbp" />
+                       <Depends filename="gtk_graphics.cbp" />
+               </Project>
+               <Project filename="gtk_gui.cbp" />
+               <Project filename="gtk_graphics.cbp" />
+       </Workspace>
+</CodeBlocks_workspace_file>
diff --git a/projs/CodeBlocks/NavitCommonLib.cbp b/projs/CodeBlocks/NavitCommonLib.cbp
new file mode 100644 (file)
index 0000000..726e46c
--- /dev/null
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+       <FileVersion major="1" minor="6" />
+       <Project>
+               <Option title="NavitCommon" />
+               <Option pch_mode="2" />
+               <Option compiler="gcc" />
+               <Build>
+                       <Target title="Debug">
+                               <Option output=".\bin\Debug\NavitCommonLib" prefix_auto="1" extension_auto="1" />
+                               <Option working_dir=".\bin\Debug" />
+                               <Option object_output=".\obj\Debug\" />
+                               <Option type="3" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-g" />
+                               </Compiler>
+                       </Target>
+                       <Target title="Release">
+                               <Option output=".\bin\Release\NavitCommonLib" prefix_auto="1" extension_auto="1" />
+                               <Option working_dir=".\bin\Release" />
+                               <Option object_output=".\obj\Release\" />
+                               <Option type="3" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-O2" />
+                               </Compiler>
+                               <Linker>
+                                       <Add option="-s" />
+                               </Linker>
+                       </Target>
+               </Build>
+               <Compiler>
+                       <Add option="-Wall" />
+                       <Add option="-mms-bitfields" />
+                       <Add option='-DMODULE=\&quot;Navit\&quot;' />
+                       <Add directory="D:\gtk\include\glib-2.0" />
+                       <Add directory="D:\gtk\lib\glib-2.0\include" />
+                       <Add directory="Win32Extra" />
+                       <Add directory="D:\gtk\include" />
+               </Compiler>
+               <Linker>
+                       <Add library="glib-2.0" />
+                       <Add library="z" />
+                       <Add directory="d:\gtk\lib" />
+               </Linker>
+               <Unit filename="Win32Extra\setenv.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="Win32Extra\setenv.h" />
+               <Unit filename="Win32Extra\sys\mman.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="Win32Extra\sys\mman.h" />
+               <Unit filename="Win32Extra\wordexp.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="Win32Extra\wordexp.h" />
+               <Unit filename="..\..\src\callback.h" />
+               <Unit filename="..\..\src\debug.h" />
+               <Unit filename="..\..\src\file.h" />
+               <Unit filename="..\..\src\item.h" />
+               <Unit filename="..\..\src\map.h" />
+               <Unit filename="..\..\src\param.h" />
+               <Unit filename="..\..\src\search.h" />
+               <Unit filename="..\..\src\transform.h" />
+               <Extensions>
+                       <code_completion />
+                       <envvars />
+                       <debugger />
+               </Extensions>
+       </Project>
+</CodeBlocks_project_file>
diff --git a/projs/CodeBlocks/Navit_no_plugin.cbp b/projs/CodeBlocks/Navit_no_plugin.cbp
new file mode 100644 (file)
index 0000000..bd7cb0d
--- /dev/null
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+       <FileVersion major="1" minor="6" />
+       <Project>
+               <Option title="gui_gtk" />
+               <Option pch_mode="2" />
+               <Option compiler="gcc" />
+               <Build>
+                       <Target title="Debug">
+                               <Option output="bin\Debug\gui_gtk" prefix_auto="1" extension_auto="1" />
+                               <Option object_output="obj\Debug\" />
+                               <Option type="3" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Option createStaticLib="1" />
+                               <Compiler>
+                                       <Add option="-g" />
+                               </Compiler>
+                               <Linker>
+                                       <Add directory="bin\Debug" />
+                               </Linker>
+                       </Target>
+                       <Target title="Release">
+                               <Option output="bin\Release\gui_gtk" prefix_auto="1" extension_auto="1" />
+                               <Option object_output="obj\Release\" />
+                               <Option type="3" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Option createStaticLib="1" />
+                               <Compiler>
+                                       <Add option="-O2" />
+                               </Compiler>
+                               <Linker>
+                                       <Add option="-s" />
+                               </Linker>
+                       </Target>
+               </Build>
+               <Compiler>
+                       <Add option="-Wall" />
+                       <Add option="-DBUILD_DLL" />
+                       <Add option='-DMODULE=\&quot;Navit\&quot;' />
+                       <Add directory="D:\gtk\include" />
+                       <Add directory="D:\gtk\include\gtk-2.0" />
+                       <Add directory="D:\gtk\include\glib-2.0" />
+                       <Add directory="D:\gtk\lib\gtk-2.0\include" />
+                       <Add directory="D:\gtk\lib\glib-2.0\include" />
+                       <Add directory="D:\gtk\include\cairo" />
+                       <Add directory="D:\gtk\include\pango-1.0" />
+                       <Add directory="D:\gtk\include\atk-1.0" />
+                       <Add directory="..\..\src" />
+                       <Add directory="Win32Extra" />
+               </Compiler>
+               <Linker>
+                       <Add library="NavitCommonLib" />
+                       <Add library="user32" />
+                       <Add library="gtk-win32-2.0" />
+                       <Add library="gobject-2.0" />
+                       <Add library="gdk_pixbuf-2.0" />
+                       <Add library="glib-2.0" />
+                       <Add library="intl" />
+                       <Add directory="d:\gtk\lib" />
+               </Linker>
+               <Unit filename="main.cpp" />
+               <Unit filename="main.h" />
+               <Unit filename="..\..\src\gui\gtk\datawindow.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\gui\gtk\destination.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\gui\gtk\gui_gtk.h" />
+               <Unit filename="..\..\src\gui\gtk\gui_gtk_action.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\gui\gtk\gui_gtk_statusbar.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\gui\gtk\gui_gtk_window.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Extensions>
+                       <code_completion />
+                       <envvars />
+                       <debugger />
+               </Extensions>
+       </Project>
+</CodeBlocks_project_file>
diff --git a/projs/CodeBlocks/Osm2Navit.cbp b/projs/CodeBlocks/Osm2Navit.cbp
new file mode 100644 (file)
index 0000000..ab5218d
--- /dev/null
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+       <FileVersion major="1" minor="6" />
+       <Project>
+               <Option title="Osm2Navit" />
+               <Option pch_mode="2" />
+               <Option compiler="gcc" />
+               <Build>
+                       <Target title="Debug">
+                               <Option output="bin\Debug\Osm2Navit" prefix_auto="1" extension_auto="1" />
+                               <Option working_dir="bin\Debug" />
+                               <Option object_output="obj\osm2navit\Debug\" />
+                               <Option type="1" />
+                               <Option compiler="gcc" />
+                               <Option use_console_runner="0" />
+                               <Option parameters="--input-file=d:\CB_Projects\netherlands.osm --attr-debug-level=0 -k netherlands.bin" />
+                               <Compiler>
+                                       <Add option="-g" />
+                               </Compiler>
+                               <Linker>
+                                       <Add directory="d:\gtk\lib" />
+                                       <Add directory="bin\Debug" />
+                               </Linker>
+                       </Target>
+                       <Target title="Release">
+                               <Option output="bin\Release\Osm2Navit" prefix_auto="1" extension_auto="1" />
+                               <Option object_output="obj\osm2navit\Release\" />
+                               <Option type="1" />
+                               <Option compiler="gcc" />
+                               <Compiler>
+                                       <Add option="-O2" />
+                               </Compiler>
+                               <Linker>
+                                       <Add option="-s" />
+                                       <Add directory="d:\gtk\lib" />
+                                       <Add directory="bin\Release" />
+                               </Linker>
+                       </Target>
+               </Build>
+               <Compiler>
+                       <Add option="-Wall" />
+                       <Add option="-mms-bitfields -DMODULE=osm2navit" />
+                       <Add directory="D:\gtk\include\glib-2.0" />
+                       <Add directory="D:\gtk\lib\glib-2.0\include" />
+                       <Add directory="D:\gtk\include" />
+                       <Add directory="Win32Extra" />
+               </Compiler>
+               <Linker>
+                       <Add library="user32" />
+                       <Add library="gtk-win32-2.0" />
+                       <Add library="gdk-win32-2.0" />
+                       <Add library="gdk_pixbuf-2.0" />
+                       <Add library="fib" />
+                       <Add library="freetype" />
+                       <Add library="z" />
+                       <Add library="gobject-2.0" />
+                       <Add library="gmodule-2.0" />
+                       <Add library="glib-2.0" />
+                       <Add library="intl" />
+                       <Add library="zdll" />
+                       <Add directory="d:\gtk\lib" />
+               </Linker>
+               <Unit filename="Win32Extra\wordexp.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="Win32Extra\wordexp.h" />
+               <Unit filename="..\..\src\attr.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\attr.h" />
+               <Unit filename="..\..\src\attr_def.h" />
+               <Unit filename="..\..\src\coord.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\coord.h" />
+               <Unit filename="..\..\src\country.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\country.h" />
+               <Unit filename="..\..\src\debug.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\debug.h" />
+               <Unit filename="..\..\src\file.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\file.h" />
+               <Unit filename="..\..\src\item.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\item.h" />
+               <Unit filename="..\..\src\map.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\map.h" />
+               <Unit filename="..\..\src\osm2navit.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\param.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\param.h" />
+               <Unit filename="..\..\src\plugin.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\plugin.h" />
+               <Unit filename="..\..\src\transform.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\transform.h" />
+               <Extensions>
+                       <code_completion />
+                       <envvars />
+                       <debugger />
+               </Extensions>
+       </Project>
+</CodeBlocks_project_file>
diff --git a/projs/CodeBlocks/Win32Extra/LiberationSans-Regular.ttf b/projs/CodeBlocks/Win32Extra/LiberationSans-Regular.ttf
new file mode 100644 (file)
index 0000000..a788fbd
Binary files /dev/null and b/projs/CodeBlocks/Win32Extra/LiberationSans-Regular.ttf differ
diff --git a/projs/CodeBlocks/Win32Extra/X11/XF86keysym.h b/projs/CodeBlocks/Win32Extra/X11/XF86keysym.h
new file mode 100644 (file)
index 0000000..ee783c2
--- /dev/null
@@ -0,0 +1,189 @@
+/* $XFree86: xc/include/XF86keysym.h,v 1.16 2003/02/11 02:51:10 dawes Exp $ */
+
+/*
+ * XFree86 vendor specific keysyms.
+ *
+ * The XFree86 keysym range is 0x10080001 - 0x1008FFFF.
+ *
+ * When adding new entries, the xc/lib/XKeysymDB file should also be
+ * updated to make the new entries visible to Xlib.
+ */
+
+/*
+ * ModeLock
+ *
+ * This one is old, and not really used any more since XKB offers this
+ * functionality.
+ */
+
+#define XF86XK_ModeLock                0x1008FF01      /* Mode Switch Lock */
+
+/*
+ * Note, 0x1008FF02 - 0x1008FF0F are free and should be used for misc new
+ * keysyms that don't fit into any of the groups below.
+ *
+ * 0x1008FF64, 0x1008FF6F, 0x1008FF71, 0x1008FF83 are no longer used,
+ * and should be used first for new keysyms.
+ *
+ * Check in keysymdef.h for generic symbols before adding new XFree86-specific
+ * symbols here.
+ */
+
+
+/*
+ * Keys found on some "Internet" keyboards.
+ */
+#define XF86XK_Standby         0x1008FF10
+#define XF86XK_AudioLowerVolume        0x1008FF11
+#define XF86XK_AudioMute       0x1008FF12
+#define XF86XK_AudioRaiseVolume        0x1008FF13
+#define XF86XK_AudioPlay       0x1008FF14
+#define XF86XK_AudioStop       0x1008FF15
+#define XF86XK_AudioPrev       0x1008FF16
+#define XF86XK_AudioNext       0x1008FF17
+#define XF86XK_HomePage                0x1008FF18
+#define XF86XK_Mail            0x1008FF19
+#define XF86XK_Start           0x1008FF1A
+#define XF86XK_Search          0x1008FF1B
+#define XF86XK_AudioRecord     0x1008FF1C
+
+/* These are sometimes found on PDA's (e.g. Palm, PocketPC or elsewhere) */
+#define XF86XK_Calculator      0x1008FF1D
+#define XF86XK_Memo            0x1008FF1E
+#define XF86XK_ToDoList                0x1008FF1F
+#define XF86XK_Calendar                0x1008FF20
+#define XF86XK_PowerDown       0x1008FF21
+#define XF86XK_ContrastAdjust  0x1008FF22
+#define XF86XK_RockerUp                0x1008FF23
+#define XF86XK_RockerDown      0x1008FF24
+#define XF86XK_RockerEnter     0x1008FF25
+
+/* Some more "Internet" keyboard symbols */
+#define XF86XK_Back            0x1008FF26
+#define XF86XK_Forward         0x1008FF27
+#define XF86XK_Stop            0x1008FF28
+#define XF86XK_Refresh         0x1008FF29
+#define XF86XK_PowerOff                0x1008FF2A
+#define XF86XK_WakeUp          0x1008FF2B
+#define XF86XK_Eject            0x1008FF2C
+#define XF86XK_ScreenSaver      0x1008FF2D
+#define XF86XK_WWW              0x1008FF2E
+#define XF86XK_Sleep            0x1008FF2F
+#define XF86XK_Favorites       0x1008FF30
+#define XF86XK_AudioPause      0x1008FF31
+#define XF86XK_AudioMedia      0x1008FF32
+#define XF86XK_MyComputer      0x1008FF33
+#define XF86XK_VendorHome      0x1008FF34
+#define XF86XK_LightBulb       0x1008FF35
+#define XF86XK_Shop            0x1008FF36
+#define XF86XK_History         0x1008FF37
+#define XF86XK_OpenURL         0x1008FF38
+#define XF86XK_AddFavorite     0x1008FF39
+#define XF86XK_HotLinks                0x1008FF3A
+#define XF86XK_BrightnessAdjust        0x1008FF3B
+#define XF86XK_Finance         0x1008FF3C
+#define XF86XK_Community       0x1008FF3D
+#define XF86XK_AudioRewind     0x1008FF3E
+#define XF86XK_XF86BackForward 0x1008FF3F
+#define XF86XK_Launch0         0x1008FF40
+#define XF86XK_Launch1         0x1008FF41
+#define XF86XK_Launch2         0x1008FF42
+#define XF86XK_Launch3         0x1008FF43
+#define XF86XK_Launch4         0x1008FF44
+#define XF86XK_Launch5         0x1008FF45
+#define XF86XK_Launch6         0x1008FF46
+#define XF86XK_Launch7         0x1008FF47
+#define XF86XK_Launch8         0x1008FF48
+#define XF86XK_Launch9         0x1008FF49
+#define XF86XK_LaunchA         0x1008FF4A
+#define XF86XK_LaunchB         0x1008FF4B
+#define XF86XK_LaunchC         0x1008FF4C
+#define XF86XK_LaunchD         0x1008FF4D
+#define XF86XK_LaunchE         0x1008FF4E
+#define XF86XK_LaunchF         0x1008FF4F
+
+#define XF86XK_ApplicationLeft 0x1008FF50
+#define XF86XK_ApplicationRight        0x1008FF51
+#define XF86XK_Book            0x1008FF52
+#define XF86XK_CD              0x1008FF53
+#define XF86XK_Calculater      0x1008FF54
+#define XF86XK_Clear           0x1008FF55
+#define XF86XK_Close           0x1008FF56
+#define XF86XK_Copy            0x1008FF57
+#define XF86XK_Cut             0x1008FF58
+#define XF86XK_Display         0x1008FF59
+#define XF86XK_DOS             0x1008FF5A
+#define XF86XK_Documents       0x1008FF5B
+#define XF86XK_Excel           0x1008FF5C
+#define XF86XK_Explorer                0x1008FF5D
+#define XF86XK_Game            0x1008FF5E
+#define XF86XK_Go              0x1008FF5F
+#define XF86XK_iTouch          0x1008FF60
+#define XF86XK_LogOff          0x1008FF61
+#define XF86XK_Market          0x1008FF62
+#define XF86XK_Meeting         0x1008FF63
+#define XF86XK_MenuKB          0x1008FF65
+#define XF86XK_MenuPB          0x1008FF66
+#define XF86XK_MySites         0x1008FF67
+#define XF86XK_New             0x1008FF68
+#define XF86XK_News            0x1008FF69
+#define XF86XK_OfficeHome      0x1008FF6A
+#define XF86XK_Open            0x1008FF6B
+#define XF86XK_Option          0x1008FF6C
+#define XF86XK_Paste           0x1008FF6D
+#define XF86XK_Phone           0x1008FF6E
+#define XF86XK_Q               0x1008FF70
+#define XF86XK_Reply           0x1008FF72
+#define XF86XK_Reload          0x1008FF73
+#define XF86XK_RotateWindows   0x1008FF74
+#define XF86XK_RotationPB      0x1008FF75
+#define XF86XK_RotationKB      0x1008FF76
+#define XF86XK_Save            0x1008FF77
+#define XF86XK_ScrollUp                0x1008FF78
+#define XF86XK_ScrollDown      0x1008FF79
+#define XF86XK_ScrollClick     0x1008FF7A
+#define XF86XK_Send            0x1008FF7B
+#define XF86XK_Spell           0x1008FF7C
+#define XF86XK_SplitScreen     0x1008FF7D
+#define XF86XK_Support         0x1008FF7E
+#define XF86XK_TaskPane                0x1008FF7F
+#define XF86XK_Terminal                0x1008FF80
+#define XF86XK_Tools           0x1008FF81
+#define XF86XK_Travel          0x1008FF82
+#define XF86XK_UserPB          0x1008FF84
+#define XF86XK_User1KB         0x1008FF85
+#define XF86XK_User2KB         0x1008FF86
+#define XF86XK_Video           0x1008FF87
+#define XF86XK_WheelButton     0x1008FF88
+#define XF86XK_Word            0x1008FF89
+#define XF86XK_Xfer            0x1008FF8A
+#define XF86XK_ZoomIn          0x1008FF8B
+#define XF86XK_ZoomOut         0x1008FF8C
+
+#define XF86XK_Away            0x1008FF8D
+#define XF86XK_Messenger       0x1008FF8E
+#define XF86XK_WebCam          0x1008FF8F
+#define XF86XK_MailForward     0x1008FF90
+#define XF86XK_Pictures                0x1008FF91
+#define XF86XK_Music           0x1008FF92
+
+/* Keys for special action keys (hot keys) */
+#define XF86XK_Switch_VT_1     0x1008FE01
+#define XF86XK_Switch_VT_2     0x1008FE02
+#define XF86XK_Switch_VT_3     0x1008FE03
+#define XF86XK_Switch_VT_4     0x1008FE04
+#define XF86XK_Switch_VT_5     0x1008FE05
+#define XF86XK_Switch_VT_6     0x1008FE06
+#define XF86XK_Switch_VT_7     0x1008FE07
+#define XF86XK_Switch_VT_8     0x1008FE08
+#define XF86XK_Switch_VT_9     0x1008FE09
+#define XF86XK_Switch_VT_10    0x1008FE0A
+#define XF86XK_Switch_VT_11    0x1008FE0B
+#define XF86XK_Switch_VT_12    0x1008FE0C
+
+#define XF86XK_Ungrab          0x1008FE20
+#define XF86XK_ClearGrab       0x1008FE21
+#define XF86XK_Next_VMode      0x1008FE22
+#define XF86XK_Prev_VMode      0x1008FE23
+
+
diff --git a/projs/CodeBlocks/Win32Extra/builtin.c b/projs/CodeBlocks/Win32Extra/builtin.c
new file mode 100644 (file)
index 0000000..07fb7ac
--- /dev/null
@@ -0,0 +1,15 @@
+extern void module_data_binfile_init(void);
+extern void module_data_poi_geodownload_init(void);
+extern void module_gtk_graphics_init(void);
+extern void module_gtk_gui_init(void);
+extern void module_vehicle_demo_init(void);
+extern void module_vehicle_file_init(void);
+extern void builtin_init(void);
+void builtin_init(void) {
+       module_data_binfile_init();
+       module_data_poi_geodownload_init();
+       module_gtk_graphics_init();
+       module_gtk_gui_init();
+       module_vehicle_demo_init();
+       module_vehicle_file_init();
+}
diff --git a/projs/CodeBlocks/Win32Extra/config.h b/projs/CodeBlocks/Win32Extra/config.h
new file mode 100644 (file)
index 0000000..019925b
--- /dev/null
@@ -0,0 +1,417 @@
+/* config.h.  Generated from config.h.in by configure.  */
+/* config.h.in.  Generated from configure.in by autoheader.  */
+
+/* Define to avoid floating point */
+/* #undef AVOID_FLOAT */
+
+/* Define to avoid unaligned access */
+/* #undef AVOID_UNALIGNED */
+
+/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
+   systems. This function is required for `alloca.c' support on those systems.
+   */
+/* #undef CRAY_STACKSEG_END */
+
+/* Define to 1 if using `alloca.c'. */
+/* #undef C_ALLOCA */
+
+/* Define to 1 if translation of program messages to the user's native
+   language is requested. */
+#define ENABLE_NLS 1
+
+/* Define to 1 if you have `alloca', as a function or macro. */
+#define HAVE_ALLOCA 1
+
+/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
+   */
+#define HAVE_ALLOCA_H 1
+
+/* Define to 1 if you have the `argz_count' function. */
+#define HAVE_ARGZ_COUNT 1
+
+/* Define to 1 if you have the <argz.h> header file. */
+#define HAVE_ARGZ_H 1
+
+/* Define to 1 if you have the `argz_next' function. */
+#define HAVE_ARGZ_NEXT 1
+
+/* Define to 1 if you have the `argz_stringify' function. */
+#define HAVE_ARGZ_STRINGIFY 1
+
+/* Define to 1 if you have the `asprintf' function. */
+#define HAVE_ASPRINTF 1
+
+/* Define to 1 if the compiler understands __builtin_expect. */
+#define HAVE_BUILTIN_EXPECT 1
+
+/* Define to 1 if you have the [CEGUI/CEGUI.h] header file. */
+/* #undef HAVE_CEGUI */
+
+/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
+   CoreFoundation framework. */
+/* #undef HAVE_CFLOCALECOPYCURRENT */
+
+/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
+   the CoreFoundation framework. */
+/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */
+
+/* Define if the GNU dcgettext() function is already present or preinstalled.
+   */
+#define HAVE_DCGETTEXT 1
+
+/* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you
+   don't. */
+#define HAVE_DECL_FEOF_UNLOCKED 0
+
+/* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if
+   you don't. */
+#define HAVE_DECL_FGETS_UNLOCKED 0
+
+/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
+   don't. */
+#define HAVE_DECL_GETC_UNLOCKED 1
+
+/* Define to 1 if you have the declaration of `_snprintf', and to 0 if you
+   don't. */
+#define HAVE_DECL__SNPRINTF 0
+
+/* Define to 1 if you have the declaration of `_snwprintf', and to 0 if you
+   don't. */
+#define HAVE_DECL__SNWPRINTF 0
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define to 1 if you have imlib2 */
+#define HAVE_FREETYPE2 1
+
+/* Define to 1 if you have the `fwprintf' function. */
+/* #undef HAVE_FWPRINTF */
+
+/* Define to 1 if you have the `getcwd' function. */
+#define HAVE_GETCWD 1
+
+/* Define to 1 if you have the `getegid' function. */
+#define HAVE_GETEGID 1
+
+/* Define to 1 if you have the `geteuid' function. */
+#define HAVE_GETEUID 1
+
+/* Define to 1 if you have the `getgid' function. */
+#define HAVE_GETGID 1
+
+/* Define to 1 if you have the `getpagesize' function. */
+#define HAVE_GETPAGESIZE 1
+
+/* Define if the GNU gettext() function is already present or preinstalled. */
+#define HAVE_GETTEXT 1
+
+/* Define to 1 if you have the `getuid' function. */
+#define HAVE_GETUID 1
+
+/* Define to 1 if you have the <GL/glc.h> header file. */
+/* #undef HAVE_GLC */
+
+/* Define to 1 if you have the <GL/glut.h> header file. */
+#define HAVE_GLUT
+
+/* Define to 1 if you have imlib2 */
+#define HAVE_GTK2 1
+
+/* Define if you have the iconv() function. */
+#define HAVE_ICONV 1
+
+/* Define to 1 if you have imlib2 */
+/* #undef HAVE_IMLIB2 */
+
+/* Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>. */
+#define HAVE_INTMAX_T 1
+
+/* Define if <inttypes.h> exists and doesn't clash with <sys/types.h>. */
+#define HAVE_INTTYPES_H 1
+
+/* Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, and
+   declares uintmax_t. */
+#define HAVE_INTTYPES_H_WITH_UINTMAX 1
+
+/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
+#define HAVE_LANGINFO_CODESET 1
+
+/* Define if your <locale.h> file defines LC_MESSAGES. */
+#define HAVE_LC_MESSAGES 1
+
+/* Define to 1 if you have the `CEGUIBase' library (-lCEGUIBase). */
+/* #undef HAVE_LIBCEGUIBASE */
+
+/* Define to 1 if you have the `CEGUIFalagardWRBase' library
+   (-lCEGUIFalagardWRBase). */
+/* #undef HAVE_LIBCEGUIFALAGARDWRBASE */
+
+/* Define to 1 if you have the `CEGUIOpenGLRenderer' library
+   (-lCEGUIOpenGLRenderer). */
+/* #undef HAVE_LIBCEGUIOPENGLRENDERER */
+
+/* Define to 1 if you have the <gps.h> header file. */
+/* #undef HAVE_LIBGPS */
+
+/* Define to 1 if you have the <SDL/SDL.h> header file. */
+/* #undef HAVE_LIBSDL */
+
+/* Define to 1 if you have the <libspeechd.h> header file. */
+/* #undef HAVE_LIBSPEECHD */
+
+/* Define to 1 if you have the <limits.h> header file. */
+#define HAVE_LIMITS_H 1
+
+/* Define if you have the 'long double' type. */
+#define HAVE_LONG_DOUBLE 1
+
+/* Define if you have the 'long long' type. */
+#define HAVE_LONG_LONG 1
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the `mempcpy' function. */
+#define HAVE_MEMPCPY 1
+
+/* Define to 1 if you have a working `mmap' system call. */
+/* #undef HAVE_MMAP */
+
+/* Define to 1 if you have the `munmap' function. */
+#define HAVE_MUNMAP 1
+
+/* Define if you have <langinfo.h> and it defines the NL_LOCALE_NAME macro if
+   _GNU_SOURCE is defined. */
+/* #undef HAVE_NL_LOCALE_NAME */
+
+/* Define to 1 if you have the <GL/gl.h> header file. */
+#define HAVE_OPENGL
+
+/* Define if your printf() function supports format strings with positions. */
+#define HAVE_POSIX_PRINTF 1
+
+/* Define if the <pthread.h> defines PTHREAD_MUTEX_RECURSIVE. */
+#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
+
+/* Define if the POSIX multithreading library has read/write locks. */
+#define HAVE_PTHREAD_RWLOCK 1
+
+/* Define to 1 if you have the `putenv' function. */
+#define HAVE_PUTENV 1
+
+/* Define to 1 if you have python */
+#define HAVE_PYTHON 1
+
+/* Define to 1 if you have the `setenv' function. */
+#define HAVE_SETENV 1
+
+/* Define to 1 if you have the `setlocale' function. */
+#define HAVE_SETLOCALE 1
+
+/* Define to 1 if you have the `snprintf' function. */
+#define HAVE_SNPRINTF 1
+
+/* Define to 1 if you have the <stddef.h> header file. */
+#define HAVE_STDDEF_H 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define if <stdint.h> exists, doesn't clash with <sys/types.h>, and declares
+   uintmax_t. */
+#define HAVE_STDINT_H_WITH_UINTMAX 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the `stpcpy' function. */
+/* #undef HAVE_STPCPY */
+
+/* Define to 1 if you have the `strcasecmp' function. */
+#define HAVE_STRCASECMP 1
+
+/* Define to 1 if you have the `strdup' function. */
+#define HAVE_STRDUP 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the `strtoul' function. */
+#define HAVE_STRTOUL 1
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+#define HAVE_SYS_PARAM_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the `tsearch' function. */
+#define HAVE_TSEARCH 1
+
+/* Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>. */
+#define HAVE_UINTMAX_T 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define if you have the 'unsigned long long' type. */
+#define HAVE_UNSIGNED_LONG_LONG 1
+
+/* Define to 1 or 0, depending whether the compiler supports simple visibility
+   declarations. */
+#define HAVE_VISIBILITY 0
+
+/* Define if you have the 'wchar_t' type. */
+#define HAVE_WCHAR_T 1
+
+/* Define to 1 if you have the `wcslen' function. */
+#define HAVE_WCSLEN 1
+
+/* Define if you have the 'wint_t' type. */
+#define HAVE_WINT_T 1
+
+/* Define to 1 if you have the <zlib.h> header file. */
+#define HAVE_ZLIB
+
+/* Define to 1 if you have the `__fsetlocking' function. */
+/* #undef HAVE___FSETLOCKING */
+
+/* Define as const if the declaration of iconv() needs const. */
+#define ICONV_CONST const
+
+/* Define if integer division by zero raises signal SIGFPE. */
+#define INTDIV0_RAISES_SIGFPE 1
+
+/* Name of package */
+#define PACKAGE "navit"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT ""
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "navit"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "navit 0.0.3"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "navit"
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "0.0.3"
+
+/* Define if <inttypes.h> exists and defines unusable PRI* macros. */
+/* #undef PRI_MACROS_BROKEN */
+
+/* Define if the pthread_in_use() detection is hard. */
+/* #undef PTHREAD_IN_USE_DETECTION_HARD */
+
+/* Define as the maximum value of type 'size_t', if the system doesn't define
+   it. */
+/* #undef SIZE_MAX */
+
+/* If using the C implementation of alloca, define if you know the
+   direction of stack growth for your system; otherwise it will be
+   automatically deduced at runtime.
+       STACK_DIRECTION > 0 => grows toward higher addresses
+       STACK_DIRECTION < 0 => grows toward lower addresses
+       STACK_DIRECTION = 0 => direction of growth unknown */
+/* #undef STACK_DIRECTION */
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define if the POSIX multithreading library can be used. */
+#define USE_POSIX_THREADS 1
+
+/* Define if references to the POSIX multithreading library should be made
+   weak. */
+/* #undef USE_POSIX_THREADS_WEAK */
+
+/* Define if the GNU Pth multithreading library can be used. */
+/* #undef USE_PTH_THREADS */
+
+/* Define if references to the GNU Pth multithreading library should be made
+   weak. */
+/* #undef USE_PTH_THREADS_WEAK */
+
+/* Define if the old Solaris multithreading library can be used. */
+/* #undef USE_SOLARIS_THREADS */
+
+/* Define if references to the old Solaris multithreading library should be
+   made weak. */
+/* #undef USE_SOLARIS_THREADS_WEAK */
+
+/* Define if the Win32 multithreading API can be used. */
+/* #undef USE_WIN32_THREADS */
+
+/* Version number of package */
+#define VERSION "0.0.3"
+
+/* Enable GNU extensions on systems that have them.  */
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE 1
+#endif
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+   calls it, or to nothing if 'inline' is not supported under any name.  */
+#ifndef __cplusplus
+/* #undef inline */
+#endif
+
+/* Define as the type of the result of subtracting two pointers, if the system
+   doesn't define it. */
+/* #undef ptrdiff_t */
+
+/* Define to empty if the C compiler doesn't support this keyword. */
+/* #undef signed */
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+/* #undef size_t */
+
+/* Define to unsigned long or unsigned long long if <stdint.h> and
+   <inttypes.h> don't define. */
+/* #undef uintmax_t */
+
+
+#define __libc_lock_t                   gl_lock_t
+#define __libc_lock_define              gl_lock_define
+#define __libc_lock_define_initialized  gl_lock_define_initialized
+#define __libc_lock_init                gl_lock_init
+#define __libc_lock_lock                gl_lock_lock
+#define __libc_lock_unlock              gl_lock_unlock
+#define __libc_lock_recursive_t                   gl_recursive_lock_t
+#define __libc_lock_define_recursive              gl_recursive_lock_define
+#define __libc_lock_define_initialized_recursive  gl_recursive_lock_define_initialized
+#define __libc_lock_init_recursive                gl_recursive_lock_init
+#define __libc_lock_lock_recursive                gl_recursive_lock_lock
+#define __libc_lock_unlock_recursive              gl_recursive_lock_unlock
+#define glthread_in_use  libintl_thread_in_use
+#define glthread_lock_init     libintl_lock_init
+#define glthread_lock_lock     libintl_lock_lock
+#define glthread_lock_unlock   libintl_lock_unlock
+#define glthread_lock_destroy  libintl_lock_destroy
+#define glthread_rwlock_init     libintl_rwlock_init
+#define glthread_rwlock_rdlock   libintl_rwlock_rdlock
+#define glthread_rwlock_wrlock   libintl_rwlock_wrlock
+#define glthread_rwlock_unlock   libintl_rwlock_unlock
+#define glthread_rwlock_destroy  libintl_rwlock_destroy
+#define glthread_recursive_lock_init     libintl_recursive_lock_init
+#define glthread_recursive_lock_lock     libintl_recursive_lock_lock
+#define glthread_recursive_lock_unlock   libintl_recursive_lock_unlock
+#define glthread_recursive_lock_destroy  libintl_recursive_lock_destroy
+#define glthread_once                 libintl_once
+#define glthread_once_call            libintl_once_call
+#define glthread_once_singlethreaded  libintl_once_singlethreaded
+
+#define index(a,b) strchr(a,b)
+#define strtok_r(s,d,p) strtok(s,d)
+
+#define alarm( a )
diff --git a/projs/CodeBlocks/Win32Extra/serial_io.c b/projs/CodeBlocks/Win32Extra/serial_io.c
new file mode 100644 (file)
index 0000000..bba9b88
--- /dev/null
@@ -0,0 +1,120 @@
+#include <stdio.h>
+#include <windows.h>
+#include "serial_io.h"
+
+int serial_io_init( int port, int baudrate )
+{
+    HANDLE hCom = NULL;
+
+       char strport[16];
+       snprintf( strport, sizeof( strport ), "\\\\.\\COM%d", port );
+
+       hCom = CreateFile(
+                       strport,
+                       GENERIC_WRITE | GENERIC_READ,
+                       0,
+                       0,
+                       OPEN_EXISTING,
+                       0,
+                       NULL);
+
+       if (hCom == INVALID_HANDLE_VALUE)
+       {
+               LPVOID lpMsgBuf;
+
+               FormatMessage(
+                       FORMAT_MESSAGE_ALLOCATE_BUFFER |
+                       FORMAT_MESSAGE_FROM_SYSTEM |
+                       FORMAT_MESSAGE_IGNORE_INSERTS,
+                       NULL,
+                       GetLastError(),
+                       MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
+                       (LPTSTR) &lpMsgBuf,
+                       0,
+                       NULL
+               );
+               char * tst = lpMsgBuf;
+
+               // g_strSerialError = strPort + wxT(": ") + (LPTSTR) lpMsgBuf;
+
+               // Free the buffer.
+               LocalFree( lpMsgBuf );
+               return 0;
+       }
+
+       DCB dcb;
+
+       ZeroMemory(&dcb, sizeof(DCB));
+
+       GetCommState(hCom, &dcb);
+
+    char strsettings[255];
+    snprintf( strsettings, sizeof( strsettings ), "baud=%d parity=N data=8 stop=1", baudrate );
+       BuildCommDCB( strsettings, &dcb);
+
+       SetupComm(hCom, 4096, 4096);
+
+       SetCommState(hCom, &dcb);
+
+       COMMTIMEOUTS sCT;
+
+       memset(&sCT, 0, sizeof(sCT));
+       sCT.ReadTotalTimeoutConstant = 10;
+
+       SetCommTimeouts(hCom, &sCT);
+
+    return (int)hCom;
+}
+
+int serial_io_read( int fd, char * buffer, int buffer_size )
+{
+       DWORD dwBytesIn = 0;
+
+       if (fd <= 0)
+       {
+               // Sleep(1000);
+               *buffer = 0;
+               return 0;
+       }
+
+       ReadFile( (HANDLE)fd, buffer, buffer_size - 1, &dwBytesIn, NULL);
+
+       if (dwBytesIn > 0)
+       {
+           printf( "GPS < %s\n",buffer );
+       }
+       if (dwBytesIn >= 0)
+       {
+               buffer[dwBytesIn] = 0;
+       }
+       else{
+        buffer[0] = 0;
+       }
+               buffer[buffer_size - 1] = 0;
+
+
+       if (dwBytesIn <= 0)
+       {
+               Sleep(50);
+               dwBytesIn = 0;
+       }
+
+       return dwBytesIn;
+}
+
+int serial_io_write(int fd, const char * buffer)
+{
+       DWORD dwBytesOut = 0;
+
+       WriteFile((HANDLE)fd, buffer, strlen(buffer), &dwBytesOut, NULL);
+
+       return dwBytesOut;
+}
+
+void serial_io_shutdown(int fd )
+{
+       if (fd > 0)
+       {
+               CloseHandle((HANDLE)fd);
+       }
+}
diff --git a/projs/CodeBlocks/Win32Extra/serial_io.h b/projs/CodeBlocks/Win32Extra/serial_io.h
new file mode 100644 (file)
index 0000000..33ffc55
--- /dev/null
@@ -0,0 +1,12 @@
+#ifndef SERIAL_IO_H_INCLUDED
+#define SERIAL_IO_H_INCLUDED
+
+// wxString EnumSerialPort(int n);
+int serial_io_init( int port, int baudrate );
+int serio_io_read(int fd, char * buffer, int buffer_size );
+int WriteSerial(int fd, const char * buffer);
+void serial_io_shutdown(int fd );
+// wxString GetLastSerialIOError();
+
+
+#endif
diff --git a/projs/CodeBlocks/Win32Extra/setenv.c b/projs/CodeBlocks/Win32Extra/setenv.c
new file mode 100644 (file)
index 0000000..ac3fcca
--- /dev/null
@@ -0,0 +1,19 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+
+int setenv(const char *name, const char *value, int overwrite)
+{
+    char strPutEnv[512];
+
+    char * hasKey = getenv ( name );
+
+    if ( ( overwrite != 0 ) || ( hasKey == NULL ) )
+    {
+        snprintf( strPutEnv, sizeof( strPutEnv ), "%s=%s", name, value );
+        strPutEnv[ sizeof( strPutEnv ) - 1 ] = '\0';
+        _putenv( strPutEnv );
+    }
+    return 0;
+}
+
diff --git a/projs/CodeBlocks/Win32Extra/setenv.h b/projs/CodeBlocks/Win32Extra/setenv.h
new file mode 100644 (file)
index 0000000..0d542a8
--- /dev/null
@@ -0,0 +1,9 @@
+#ifndef _SETENV_H_INCLUDED
+#define        _SETENV_H_INCLUDED
+
+
+int setenv(const char *name, const char *value, int overwrite);
+
+
+#endif /* !_SETENV_H_INCLUDED */
+
diff --git a/projs/CodeBlocks/Win32Extra/sys/mman.c b/projs/CodeBlocks/Win32Extra/sys/mman.c
new file mode 100644 (file)
index 0000000..eeeda77
--- /dev/null
@@ -0,0 +1,18 @@
+#include <windows.h>
+#include "mman.h"
+
+void * mmap_file_readonly( const char* name )
+{
+    void * mapped_ptr = NULL;
+
+    OFSTRUCT   of;
+    HFILE hFile = OpenFile (name, &of, OF_READ);
+
+    if ( hFile != HFILE_ERROR )
+    {
+        HANDLE hMapping = CreateFileMapping ( (HANDLE)hFile, NULL, PAGE_READONLY, 0, 0, NULL);
+        mapped_ptr = MapViewOfFile(hMapping, FILE_MAP_READ, 0 , 0, 0 );
+    }
+    return mapped_ptr;
+}
+
diff --git a/projs/CodeBlocks/Win32Extra/sys/mman.h b/projs/CodeBlocks/Win32Extra/sys/mman.h
new file mode 100644 (file)
index 0000000..8545604
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef _SYS_MAN_H_INCLUDED
+#define        _SYS_MAN_H_INCLUDED
+
+void * mmap_file_readonly( const char* name );
+
+#endif /* !_SYS_MAN_H_INCLUDED */
+
diff --git a/projs/CodeBlocks/Win32Extra/wordexp.c b/projs/CodeBlocks/Win32Extra/wordexp.c
new file mode 100644 (file)
index 0000000..faa2d65
--- /dev/null
@@ -0,0 +1,53 @@
+#include <sys/types.h>
+#include <assert.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include "wordexp.h"
+
+int wordexp(const char * words, wordexp_t * we, int flags)
+{
+       int error=0;
+
+       assert(we != NULL);
+       assert(words != NULL);
+
+    we->we_wordc = 1;
+       we->we_wordv = NULL;
+       we->we_strings = NULL;
+       we->we_nbytes = 0;
+
+    we->we_wordv = malloc( we->we_wordc * sizeof( char* ) );
+
+    we->we_nbytes = strlen( words ) + 1;
+    we->we_strings = malloc( we->we_nbytes );
+
+    we->we_wordv[0] = &we->we_strings[0];
+
+    // copy string & terminate
+    memcpy( we->we_strings, words, we->we_nbytes -1 );
+    we->we_strings[ we->we_nbytes -1 ] = '\0';
+
+       return error;
+}
+
+void wordfree(wordexp_t *we)
+{
+       assert(we != NULL);
+
+       if ( we->we_wordv )
+       {
+        free(we->we_wordv);
+       }
+       if ( we->we_strings )
+       {
+        free(we->we_strings);
+       }
+
+       we->we_wordv = NULL;
+       we->we_strings = NULL;
+       we->we_nbytes = 0;
+       we->we_wordc = 0;
+}
diff --git a/projs/CodeBlocks/Win32Extra/wordexp.h b/projs/CodeBlocks/Win32Extra/wordexp.h
new file mode 100644 (file)
index 0000000..ad18c78
--- /dev/null
@@ -0,0 +1,42 @@
+#ifndef _WORDEXP_H_
+#define        _WORDEXP_H_
+
+
+typedef struct {
+       size_t  we_wordc;               /* count of words matched */
+       char            **we_wordv;     /* pointer to list of words */
+       size_t  we_offs;                /* slots to reserve in we_wordv */
+                                       /* following are internals */
+       char            *we_strings;    /* storage for wordv strings */
+       size_t  we_nbytes;              /* size of we_strings */
+} wordexp_t;
+
+/*
+ * Flags for wordexp().
+ */
+#define        WRDE_APPEND     0x1             /* append to previously generated */
+#define        WRDE_DOOFFS     0x2             /* we_offs member is valid */
+#define        WRDE_NOCMD      0x4             /* disallow command substitution */
+#define        WRDE_REUSE      0x8             /* reuse wordexp_t */
+#define        WRDE_SHOWERR    0x10            /* don't redirect stderr to /dev/null */
+#define        WRDE_UNDEF      0x20            /* disallow undefined shell vars */
+
+/*
+ * Return values from wordexp().
+ */
+#define        WRDE_BADCHAR    1               /* unquoted special character */
+#define        WRDE_BADVAL     2               /* undefined variable */
+#define        WRDE_CMDSUB     3               /* command substitution not allowed */
+#define        WRDE_NOSPACE    4               /* no memory for result */
+#if (_XOPEN_SOURCE - 0) >= 4 || defined(_NETBSD_SOURCE)
+#define        WRDE_NOSYS      5               /* obsolete, reserved */
+#endif
+#define        WRDE_SYNTAX     6               /* shell syntax error */
+#define WRDE_ERRNO     7               /* other errors see errno */
+
+void   wordfree(wordexp_t *);
+int wordexp(const char * words, wordexp_t * we, int flags);
+
+
+#endif /* !_WORDEXP_H_ */
+
diff --git a/projs/CodeBlocks/binfile.cbp b/projs/CodeBlocks/binfile.cbp
new file mode 100644 (file)
index 0000000..c4e531a
--- /dev/null
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+       <FileVersion major="1" minor="6" />
+       <Project>
+               <Option title="binfile" />
+               <Option pch_mode="2" />
+               <Option compiler="gcc" />
+               <Build>
+                       <Target title="Debug">
+                               <Option output=".\bin\Debug\libdata_binfile.la" prefix_auto="1" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output=".\obj\Debug\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-g" />
+                               </Compiler>
+                               <Linker>
+                                       <Add directory="d:\gtk\lib" />
+                                       <Add directory="bin\Debug" />
+                               </Linker>
+                       </Target>
+                       <Target title="Release">
+                               <Option output=".\bin\Release\libdata_binfile.la" prefix_auto="1" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output=".\obj\Release\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-O2" />
+                               </Compiler>
+                               <Linker>
+                                       <Add option="-s" />
+                                       <Add directory="d:\gtk\lib" />
+                                       <Add directory="bin\Release" />
+                               </Linker>
+                       </Target>
+               </Build>
+               <Compiler>
+                       <Add option="-Wall" />
+                       <Add option="-mms-bitfields `pkg-config --cflags --libs glib-2.0`" />
+                       <Add option="-DBUILD_DLL" />
+                       <Add option="-DMODULE=data_binfile" />
+                       <Add directory="D:\gtk\include\glib-2.0" />
+                       <Add directory="D:\gtk\lib\glib-2.0\include" />
+                       <Add directory="..\..\" />
+                       <Add directory="..\" />
+                       <Add directory="D:\CB_Projects\Navit\src\" />
+                       <Add directory="Win32Extra" />
+                       <Add directory="..\..\src" />
+               </Compiler>
+               <Linker>
+                       <Add library="NavitCommonLib" />
+                       <Add library="glib-2.0" />
+                       <Add library="user32" />
+                       <Add library="intl" />
+                       <Add library="iconv" />
+                       <Add directory="d:\gtk\lib" />
+               </Linker>
+               <Unit filename="..\..\src\data\binfile\binfile.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Extensions>
+                       <code_completion />
+                       <envvars />
+                       <debugger />
+               </Extensions>
+       </Project>
+</CodeBlocks_project_file>
diff --git a/projs/CodeBlocks/data_poi_geodownload.cbp b/projs/CodeBlocks/data_poi_geodownload.cbp
new file mode 100644 (file)
index 0000000..d8e5447
--- /dev/null
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+       <FileVersion major="1" minor="6" />
+       <Project>
+               <Option title="data_poi_geodownload" />
+               <Option pch_mode="2" />
+               <Option compiler="gcc" />
+               <Build>
+                       <Target title="Debug">
+                               <Option output=".\bin\Debug\libdata_poi_geodownload.la" prefix_auto="1" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output=".\obj\Debug\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-g" />
+                               </Compiler>
+                               <Linker>
+                                       <Add directory="d:\gtk\lib" />
+                                       <Add directory="bin\Debug" />
+                               </Linker>
+                       </Target>
+                       <Target title="Release">
+                               <Option output=".\bin\Release\libdata_poi_geodownload.la" prefix_auto="1" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output=".\obj\Release\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-O2" />
+                               </Compiler>
+                               <Linker>
+                                       <Add option="-s" />
+                                       <Add directory="d:\gtk\lib" />
+                                       <Add directory="bin\Release" />
+                               </Linker>
+                       </Target>
+               </Build>
+               <Compiler>
+                       <Add option="-Wall" />
+                       <Add option="-mms-bitfields `pkg-config --cflags --libs glib-2.0`" />
+                       <Add option="-DBUILD_DLL" />
+                       <Add option="-DMODULE=data_poi_geodownload" />
+                       <Add directory="D:\gtk\include\glib-2.0" />
+                       <Add directory="D:\gtk\lib\glib-2.0\include" />
+                       <Add directory="..\..\" />
+                       <Add directory="..\" />
+                       <Add directory="D:\CB_Projects\Navit\src\" />
+                       <Add directory="Win32Extra" />
+                       <Add directory="..\..\src" />
+                       <Add directory="..\..\src\data\poi_geodownload\libmdb\include" />
+               </Compiler>
+               <Linker>
+                       <Add library="glib-2.0" />
+                       <Add library="user32" />
+                       <Add library="intl" />
+                       <Add library="iconv" />
+                       <Add directory="d:\gtk\lib" />
+               </Linker>
+               <Unit filename="..\..\src\data\poi_geodownload\poi_geodownload.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Extensions>
+                       <code_completion />
+                       <envvars />
+                       <debugger />
+               </Extensions>
+       </Project>
+</CodeBlocks_project_file>
diff --git a/projs/CodeBlocks/fib-1.1.cbp b/projs/CodeBlocks/fib-1.1.cbp
new file mode 100644 (file)
index 0000000..7d8c537
--- /dev/null
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+       <FileVersion major="1" minor="6" />
+       <Project>
+               <Option title="fib-1.1" />
+               <Option pch_mode="2" />
+               <Option compiler="gcc" />
+               <Build>
+                       <Target title="Debug">
+                               <Option output=".\bin\Debug\libfib.a" prefix_auto="0" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output="obj\fib-1.1\Debug\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-g" />
+                                       <Add option="-I." />
+                               </Compiler>
+                       </Target>
+                       <Target title="Release">
+                               <Option output=".\bin\Release\libfib.a" prefix_auto="0" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output="obj\fib-1.1\Release\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-O2" />
+                               </Compiler>
+                               <Linker>
+                                       <Add option="-s" />
+                               </Linker>
+                       </Target>
+               </Build>
+               <Compiler>
+                       <Add option="-Wall" />
+                       <Add directory="..\..\src\fib-1.1" />
+               </Compiler>
+               <Unit filename="..\..\src\fib-1.1\fib.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\fib-1.1\fib.h" />
+               <Unit filename="..\..\src\fib-1.1\fibpriv.h" />
+               <Extensions>
+                       <code_completion />
+                       <envvars />
+                       <debugger />
+               </Extensions>
+       </Project>
+</CodeBlocks_project_file>
diff --git a/projs/CodeBlocks/gtk_graphics.cbp b/projs/CodeBlocks/gtk_graphics.cbp
new file mode 100644 (file)
index 0000000..7aa487b
--- /dev/null
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+       <FileVersion major="1" minor="6" />
+       <Project>
+               <Option title="gtk_graphics" />
+               <Option pch_mode="2" />
+               <Option compiler="gcc" />
+               <Build>
+                       <Target title="Debug">
+                               <Option output=".\bin\Debug\lib_gtk_graphics.la" prefix_auto="1" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output=".\obj\Debug\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-g" />
+                               </Compiler>
+                               <Linker>
+                                       <Add directory="d:\gtk\lib" />
+                                       <Add directory="bin\Debug" />
+                               </Linker>
+                       </Target>
+                       <Target title="Release">
+                               <Option output=".\bin\Release\lib_gtk_graphics.la" prefix_auto="1" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output=".\obj\Release\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-O2" />
+                               </Compiler>
+                               <Linker>
+                                       <Add option="-s" />
+                                       <Add directory="d:\gtk\lib" />
+                                       <Add directory="bin\Release" />
+                               </Linker>
+                       </Target>
+               </Build>
+               <Compiler>
+                       <Add option="-Wall" />
+                       <Add option="-mms-bitfields `pkg-config --cflags --libs glib-2.0`" />
+                       <Add option="-DBUILD_DLL" />
+                       <Add option="-DMODULE=GTKGRAPHICS" />
+                       <Add directory="D:\gtk\include" />
+                       <Add directory="D:\gtk\include\gtk-2.0" />
+                       <Add directory="D:\gtk\include\glib-2.0" />
+                       <Add directory="D:\gtk\lib\gtk-2.0\include" />
+                       <Add directory="D:\gtk\lib\glib-2.0\include" />
+                       <Add directory="D:\gtk\include\cairo" />
+                       <Add directory="D:\gtk\include\pango-1.0" />
+                       <Add directory="D:\gtk\include\atk-1.0" />
+                       <Add directory="..\..\src" />
+                       <Add directory="Win32Extra" />
+               </Compiler>
+               <Linker>
+                       <Add library="NavitCommonLib" />
+                       <Add library="glib-2.0" />
+                       <Add library="user32" />
+                       <Add library="intl" />
+                       <Add library="iconv" />
+                       <Add directory="d:\gtk\lib" />
+               </Linker>
+               <Unit filename="..\..\src\graphics\gtk_drawing_area\graphics_gtk_drawing_area.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Extensions>
+                       <code_completion />
+                       <envvars />
+                       <debugger />
+               </Extensions>
+       </Project>
+</CodeBlocks_project_file>
diff --git a/projs/CodeBlocks/gtk_gui.cbp b/projs/CodeBlocks/gtk_gui.cbp
new file mode 100644 (file)
index 0000000..a681e56
--- /dev/null
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+       <FileVersion major="1" minor="6" />
+       <Project>
+               <Option title="gtk_gui" />
+               <Option pch_mode="2" />
+               <Option compiler="gcc" />
+               <Build>
+                       <Target title="Debug">
+                               <Option output=".\bin\Debug\libgtk_gui.la" prefix_auto="1" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output=".\obj\Debug\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-g" />
+                               </Compiler>
+                               <Linker>
+                                       <Add directory="d:\gtk\lib" />
+                                       <Add directory="bin\Debug" />
+                               </Linker>
+                       </Target>
+                       <Target title="Release">
+                               <Option output=".\bin\Release\libgtk_gui.la" prefix_auto="1" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output=".\obj\Release\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-O2" />
+                               </Compiler>
+                               <Linker>
+                                       <Add option="-s" />
+                                       <Add directory="d:\gtk\lib" />
+                                       <Add directory="bin\Release" />
+                               </Linker>
+                       </Target>
+               </Build>
+               <Compiler>
+                       <Add option="-Wall" />
+                       <Add option="-mms-bitfields `pkg-config --cflags --libs glib-2.0`" />
+                       <Add option="-DBUILD_DLL" />
+                       <Add option="-DMODULE=gtk_gui" />
+                       <Add directory="D:\gtk\include" />
+                       <Add directory="D:\gtk\include\gtk-2.0" />
+                       <Add directory="D:\gtk\include\glib-2.0" />
+                       <Add directory="D:\gtk\lib\gtk-2.0\include" />
+                       <Add directory="D:\gtk\lib\glib-2.0\include" />
+                       <Add directory="D:\gtk\include\cairo" />
+                       <Add directory="D:\gtk\include\pango-1.0" />
+                       <Add directory="D:\gtk\include\atk-1.0" />
+                       <Add directory="..\..\src" />
+                       <Add directory="Win32Extra" />
+               </Compiler>
+               <Linker>
+                       <Add directory="d:\gtk\lib" />
+               </Linker>
+               <Unit filename="..\..\src\gui\gtk\datawindow.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\gui\gtk\destination.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\gui\gtk\gui_gtk.h" />
+               <Unit filename="..\..\src\gui\gtk\gui_gtk_action.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\gui\gtk\gui_gtk_statusbar.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\gui\gtk\gui_gtk_window.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Extensions>
+                       <code_completion />
+                       <envvars />
+                       <debugger />
+               </Extensions>
+       </Project>
+</CodeBlocks_project_file>
diff --git a/projs/CodeBlocks/gui_sdl.cbp b/projs/CodeBlocks/gui_sdl.cbp
new file mode 100644 (file)
index 0000000..61bce83
--- /dev/null
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+       <FileVersion major="1" minor="6" />
+       <Project>
+               <Option title="gui_sdl" />
+               <Option pch_mode="2" />
+               <Option compiler="gcc" />
+               <Build>
+                       <Target title="Debug">
+                               <Option output=".\bin\Debug\libgui_sdl.la" prefix_auto="1" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output=".\obj\Debug\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-g" />
+                               </Compiler>
+                               <Linker>
+                                       <Add directory="d:\gtk\lib" />
+                                       <Add directory="bin\Debug" />
+                               </Linker>
+                       </Target>
+                       <Target title="Release">
+                               <Option output=".\bin\Release\libgui_sdl.la" prefix_auto="1" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output=".\obj\Release\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-O2" />
+                               </Compiler>
+                               <Linker>
+                                       <Add option="-s" />
+                                       <Add directory="d:\gtk\lib" />
+                                       <Add directory="bin\Release" />
+                               </Linker>
+                       </Target>
+               </Build>
+               <Compiler>
+                       <Add option="-Wall" />
+                       <Add option="-mms-bitfields `pkg-config --cflags --libs glib-2.0`" />
+                       <Add option="-DBUILD_DLL" />
+                       <Add option="-DMODULE=gui_sdl" />
+                       <Add directory="D:\gtk\include" />
+                       <Add directory="D:\gtk\include\gtk-2.0" />
+                       <Add directory="D:\gtk\include\glib-2.0" />
+                       <Add directory="D:\gtk\lib\gtk-2.0\include" />
+                       <Add directory="D:\gtk\lib\glib-2.0\include" />
+                       <Add directory="D:\gtk\include\cairo" />
+                       <Add directory="D:\gtk\include\pango-1.0" />
+                       <Add directory="D:\gtk\include\atk-1.0" />
+                       <Add directory="..\..\src" />
+                       <Add directory="Win32Extra" />
+                       <Add directory="D:\msys\local\include" />
+               </Compiler>
+               <Linker>
+                       <Add directory="d:\gtk\lib" />
+               </Linker>
+               <Unit filename="..\..\src\gui\sdl\Makefile.am" />
+               <Unit filename="..\..\src\gui\sdl\Makefile.in" />
+               <Unit filename="..\..\src\gui\sdl\cegui_keyboard.cpp" />
+               <Unit filename="..\..\src\gui\sdl\cegui_keyboard.h" />
+               <Unit filename="..\..\src\gui\sdl\gui_sdl.h" />
+               <Unit filename="..\..\src\gui\sdl\gui_sdl_window.cpp" />
+               <Unit filename="..\..\src\gui\sdl\sdl_events.cpp" />
+               <Unit filename="..\..\src\gui\sdl\sdl_events.h" />
+               <Unit filename="..\..\src\gui\sdl\wmcontrol.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\gui\sdl\wmcontrol.h" />
+               <Extensions>
+                       <code_completion />
+                       <envvars />
+                       <debugger />
+               </Extensions>
+       </Project>
+</CodeBlocks_project_file>
diff --git a/projs/CodeBlocks/libgarmin.cbp b/projs/CodeBlocks/libgarmin.cbp
new file mode 100644 (file)
index 0000000..16c63e5
--- /dev/null
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+       <FileVersion major="1" minor="6" />
+       <Project>
+               <Option title="libgarmin" />
+               <Option pch_mode="2" />
+               <Option compiler="gcc" />
+               <Build>
+                       <Target title="Debug">
+                               <Option output="libgarmin" prefix_auto="1" extension_auto="1" />
+                               <Option working_dir="" />
+                               <Option object_output="obj\Debug\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-g" />
+                               </Compiler>
+                       </Target>
+                       <Target title="Release">
+                               <Option output="libgarmin" prefix_auto="1" extension_auto="1" />
+                               <Option working_dir="" />
+                               <Option object_output="obj\Release\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-O2" />
+                               </Compiler>
+                               <Linker>
+                                       <Add option="-s" />
+                               </Linker>
+                       </Target>
+               </Build>
+               <Compiler>
+                       <Add option="-Wall" />
+               </Compiler>
+               <Unit filename="..\..\..\libgarmin\src\GarminTypedef.h" />
+               <Unit filename="..\..\..\libgarmin\src\array.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\..\libgarmin\src\array.h" />
+               <Unit filename="..\..\..\libgarmin\src\bsp.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\..\libgarmin\src\bsp.h" />
+               <Unit filename="..\..\..\libgarmin\src\garmin.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\..\libgarmin\src\garmin_fat.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\..\libgarmin\src\garmin_fat.h" />
+               <Unit filename="..\..\..\libgarmin\src\garmin_lbl.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\..\libgarmin\src\garmin_lbl.h" />
+               <Unit filename="..\..\..\libgarmin\src\garmin_net.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\..\libgarmin\src\garmin_net.h" />
+               <Unit filename="..\..\..\libgarmin\src\garmin_obj.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\..\libgarmin\src\garmin_order.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\..\libgarmin\src\garmin_order.h" />
+               <Unit filename="..\..\..\libgarmin\src\garmin_rgn.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\..\libgarmin\src\garmin_rgn.h" />
+               <Unit filename="..\..\..\libgarmin\src\garmin_subdiv.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\..\libgarmin\src\garmin_subdiv.h" />
+               <Unit filename="..\..\..\libgarmin\src\garmin_tdb.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\..\libgarmin\src\garmin_tdb.h" />
+               <Unit filename="..\..\..\libgarmin\src\garmin_typ.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\..\libgarmin\src\geoutils.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\..\libgarmin\src\geoutils.h" />
+               <Unit filename="..\..\..\libgarmin\src\libgarmin.h" />
+               <Unit filename="..\..\..\libgarmin\src\libgarmin_priv.h" />
+               <Unit filename="..\..\..\libgarmin\src\list.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\..\libgarmin\src\list.h" />
+               <Unit filename="main.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Extensions>
+                       <code_completion />
+                       <envvars />
+                       <debugger />
+               </Extensions>
+       </Project>
+</CodeBlocks_project_file>
diff --git a/projs/CodeBlocks/make_builtin b/projs/CodeBlocks/make_builtin
new file mode 100644 (file)
index 0000000..f8e1c65
--- /dev/null
@@ -0,0 +1,7 @@
+
+builtin.c:
+       ls *.la | sed -e "s/.la/_init(void);/" -e "s/.*lib/extern void module_/" >builtin.c
+       echo "extern void builtin_init(void);" >>builtin.c
+       echo "void builtin_init(void) {" >>builtin.c
+       ls *.la | sed -e "s/.la/_init();/" -e "s/.*lib/ module_/" >>builtin.c
+       echo "}" >>builtin.c
diff --git a/projs/CodeBlocks/makefile_langfiles b/projs/CodeBlocks/makefile_langfiles
new file mode 100644 (file)
index 0000000..bdbc614
--- /dev/null
@@ -0,0 +1,19 @@
+POFILES = cs.mo es.mo fr.mo nl.mo pl.mo de.mo fi.mo it.mo no.mo
+
+MSGFMT=msgfmt.exe
+
+%.mo:../../po/%.po
+       $(MSGFMT) --check --verbose --statistics --output-file=$@ $< && \
+       mkdir -p ./locale/$(basename $@)/LC_MESSAGES && \
+       mv $@ ./locale/$(basename $@)/LC_MESSAGES/navit.mo
+
+.PHONY: all clean
+
+# nl.po: ..\..\nl.mo
+
+all: $(POFILES)
+
+clean:
+       rm -rf locale/*
+
+  
diff --git a/projs/CodeBlocks/mdb.cbp b/projs/CodeBlocks/mdb.cbp
new file mode 100644 (file)
index 0000000..a723def
--- /dev/null
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+       <FileVersion major="1" minor="6" />
+       <Project>
+               <Option title="mdb" />
+               <Option pch_mode="2" />
+               <Option compiler="gcc" />
+               <Build>
+                       <Target title="Debug">
+                               <Option output=".\bin\Debug\libmdb.a" prefix_auto="0" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output="obj\mdb\Debug\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-g" />
+                                       <Add option="-I." />
+                               </Compiler>
+                       </Target>
+                       <Target title="Release">
+                               <Option output=".\bin\Release\libmdb.a" prefix_auto="0" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output="obj\mdb\Release\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-O2" />
+                               </Compiler>
+                               <Linker>
+                                       <Add option="-s" />
+                               </Linker>
+                       </Target>
+               </Build>
+               <Compiler>
+                       <Add option="-Wall" />
+                       <Add option="-mms-bitfields `pkg-config --cflags --libs glib-2.0`" />
+                       <Add directory="..\..\src\data\poi_geodownload\libmdb\include" />
+               </Compiler>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\backend.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\catalog.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\data.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\dump.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\file.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\iconv.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\index.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\kkd.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\like.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\map.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\mem.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\money.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\options.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\props.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\sargs.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\stats.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\table.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\worktable.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Unit filename="..\..\src\data\poi_geodownload\libmdb\write.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Extensions>
+                       <code_completion />
+                       <envvars />
+                       <debugger />
+               </Extensions>
+       </Project>
+</CodeBlocks_project_file>
diff --git a/projs/CodeBlocks/vehicle_demo.cbp b/projs/CodeBlocks/vehicle_demo.cbp
new file mode 100644 (file)
index 0000000..7755a8a
--- /dev/null
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+       <FileVersion major="1" minor="6" />
+       <Project>
+               <Option title="vehicle_demo" />
+               <Option pch_mode="2" />
+               <Option compiler="gcc" />
+               <Build>
+                       <Target title="Debug">
+                               <Option output=".\bin\Debug\libvehicle_demo.la" prefix_auto="1" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output=".\obj\Debug\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-g" />
+                               </Compiler>
+                               <Linker>
+                                       <Add directory="d:\gtk\lib" />
+                                       <Add directory="bin\Debug" />
+                               </Linker>
+                       </Target>
+                       <Target title="Release">
+                               <Option output=".\bin\Release\libvehicle_demo.la" prefix_auto="1" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output=".\obj\Release\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-O2" />
+                               </Compiler>
+                               <Linker>
+                                       <Add option="-s" />
+                                       <Add directory="d:\gtk\lib" />
+                                       <Add directory="bin\Release" />
+                               </Linker>
+                       </Target>
+               </Build>
+               <Compiler>
+                       <Add option="-Wall" />
+                       <Add option="-mms-bitfields `pkg-config --cflags --libs glib-2.0`" />
+                       <Add option="-DBUILD_DLL" />
+                       <Add option="-DMODULE=vehicle_demo" />
+                       <Add directory="D:\gtk\include\glib-2.0" />
+                       <Add directory="D:\gtk\lib\glib-2.0\include" />
+                       <Add directory="..\..\" />
+                       <Add directory="..\" />
+                       <Add directory="D:\CB_Projects\Navit\src\" />
+                       <Add directory="Win32Extra" />
+                       <Add directory="..\..\src" />
+               </Compiler>
+               <Linker>
+                       <Add library="glib-2.0" />
+                       <Add library="user32" />
+                       <Add library="intl" />
+                       <Add library="iconv" />
+                       <Add directory="d:\gtk\lib" />
+               </Linker>
+               <Unit filename="..\..\src\vehicle\demo\vehicle_demo.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Extensions>
+                       <code_completion />
+                       <envvars />
+                       <debugger />
+               </Extensions>
+       </Project>
+</CodeBlocks_project_file>
diff --git a/projs/CodeBlocks/vehicle_file.cbp b/projs/CodeBlocks/vehicle_file.cbp
new file mode 100644 (file)
index 0000000..5d86259
--- /dev/null
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+       <FileVersion major="1" minor="6" />
+       <Project>
+               <Option title="vehicle_file" />
+               <Option pch_mode="2" />
+               <Option compiler="gcc" />
+               <Build>
+                       <Target title="Debug">
+                               <Option output=".\bin\Debug\libvehicle_file.la" prefix_auto="1" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output=".\obj\Debug\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-g" />
+                               </Compiler>
+                               <Linker>
+                                       <Add directory="d:\gtk\lib" />
+                                       <Add directory="bin\Debug" />
+                               </Linker>
+                       </Target>
+                       <Target title="Release">
+                               <Option output=".\bin\Release\libvehicle_file.la" prefix_auto="1" extension_auto="0" />
+                               <Option working_dir="" />
+                               <Option object_output=".\obj\Release\" />
+                               <Option type="2" />
+                               <Option compiler="gcc" />
+                               <Option createDefFile="1" />
+                               <Compiler>
+                                       <Add option="-O2" />
+                               </Compiler>
+                               <Linker>
+                                       <Add option="-s" />
+                                       <Add directory="d:\gtk\lib" />
+                                       <Add directory="bin\Release" />
+                               </Linker>
+                       </Target>
+               </Build>
+               <Compiler>
+                       <Add option="-Wall" />
+                       <Add option="-mms-bitfields `pkg-config --cflags --libs glib-2.0`" />
+                       <Add option="-DBUILD_DLL" />
+                       <Add option="-DMODULE=vehicle_file" />
+                       <Add directory="D:\gtk\include\glib-2.0" />
+                       <Add directory="D:\gtk\lib\glib-2.0\include" />
+                       <Add directory="..\..\" />
+                       <Add directory="..\" />
+                       <Add directory="D:\CB_Projects\Navit\src\" />
+                       <Add directory="Win32Extra" />
+                       <Add directory="..\..\src" />
+               </Compiler>
+               <Linker>
+                       <Add library="glib-2.0" />
+                       <Add library="user32" />
+                       <Add library="intl" />
+                       <Add library="iconv" />
+                       <Add directory="d:\gtk\lib" />
+               </Linker>
+               <Unit filename="..\..\src\vehicle\file\vehicle_file.c">
+                       <Option compilerVar="CC" />
+               </Unit>
+               <Extensions>
+                       <code_completion />
+                       <envvars />
+                       <debugger />
+               </Extensions>
+       </Project>
+</CodeBlocks_project_file>
index b68389b..51986c4 100644 (file)
@@ -6,7 +6,10 @@
 #ifdef HAVE_IMLIB2
 #include <Imlib2.h>
 #endif
+
+#ifndef _WIN32
 #include <gdk/gdkx.h>
+#endif
 #include "debug.h"
 #include "point.h"
 #include "graphics.h"
@@ -61,6 +64,9 @@ graphics_destroy(struct graphics_priv *gr)
 }
 
 static char *fontpaths[]={
+#ifdef _WIN32
+       "c:/windows/fonts",
+#endif
        "/usr/share/fonts",
        "/usr/X11R6/lib/X11/fonts/msttcorefonts",
        "/usr/X11R6/lib/X11/fonts/truetype",
@@ -289,6 +295,7 @@ struct text_render {
        struct text_glyph *glyph[0];
 };
 
+#ifndef _WIN32
 static GdkImage *
 display_text_render_shadow(struct text_glyph *g)
 {
@@ -332,6 +339,49 @@ display_text_render_shadow(struct text_glyph *g)
        ret=gdk_image_new_bitmap(gdk_visual_get_system(), shadow, g->w+2, g->h+2);
        return ret;
 }
+#else
+static GdkImage *
+display_text_render_shadow(struct text_glyph *g)
+{
+       int mask0, mask1, mask2, x, y, w=g->w, h=g->h;
+       int str=(g->w+9)/8;
+       unsigned char *p, *pm=g->pixmap;
+       GdkImage *ret;
+
+       ret=gdk_image_new( GDK_IMAGE_NORMAL , gdk_visual_get_system(), w+2, h+2);
+
+       for (y = 0 ; y < h ; y++) {
+               p=ret->mem+str*y;
+
+               mask0=0x4000;
+               mask1=0xe000;
+               mask2=0x4000;
+               for (x = 0 ; x < w ; x++) {
+                       if (pm[x+y*w]) {
+                               p[0]|=(mask0 >> 8);
+                               if (mask0 & 0xff)
+                                       p[1]|=mask0;
+
+                               p[str]|=(mask1 >> 8);
+                               if (mask1 & 0xff)
+                                       p[str+1]|=mask1;
+                               p[str*2]|=(mask2 >> 8);
+                               if (mask2 & 0xff)
+                                       p[str*2+1]|=mask2;
+                       }
+                       mask0 >>= 1;
+                       mask1 >>= 1;
+                       mask2 >>= 1;
+                       if (!((mask0 >> 8) | (mask1 >> 8) | (mask2 >> 8))) {
+                               mask0<<=8;
+                               mask1<<=8;
+                               mask2<<=8;
+                       }
+               }
+       }
+       return ret;
+}
+#endif
 
 static struct text_render *
 display_text_render(char *text, struct graphics_font_priv *font, int dx, int dy, int x, int y)