Visual Studio Builds: Update .def Files Generation

Define COGL_HAS_GTYPE_SUPPORT during the preprocessing of the .symbols
files so that the _get_gtype symbols can be exported.
This commit is contained in:
Chun-wei Fan 2014-04-07 12:38:57 +08:00
parent 39d30a35a7
commit 3e494a13f8
2 changed files with 6 additions and 6 deletions

View File

@ -48,15 +48,15 @@ cd $(SolutionDir)
</GenCoglEnumsC> </GenCoglEnumsC>
<GenerateCoglDef> <GenerateCoglDef>
echo EXPORTS &gt; $(DefDir)\cogl.def echo EXPORTS &gt; $(DefDir)\cogl.def
cl -EP -D_COGL_SUPPORTS_GTYPE_INTEGRATION -DCOGL_HAS_WIN32_SUPPORT -DCOGL_HAS_GLIB_SUPPORT -DCOGL_ENABLE_EXPERIMENTAL_API ..\..\..\cogl\cogl.symbols &gt;&gt; $(DefDir)\cogl.def cl -EP -DCOGL_HAS_GTYPE_SUPPORT -DCOGL_HAS_WIN32_SUPPORT -DCOGL_HAS_GLIB_SUPPORT -DCOGL_ENABLE_EXPERIMENTAL_API ..\..\..\cogl\cogl.symbols &gt;&gt; $(DefDir)\cogl.def
</GenerateCoglDef> </GenerateCoglDef>
<GenerateCoglSDLDef> <GenerateCoglSDLDef>
echo EXPORTS &gt; $(DefDir)\cogl.def echo EXPORTS &gt; $(DefDir)\cogl.def
cl -EP -D_COGL_SUPPORTS_GTYPE_INTEGRATION -DCOGL_HAS_WIN32_SUPPORT -DCOGL_HAS_GLIB_SUPPORT -DCOGL_HAS_SDL_SUPPORT -DCOGL_ENABLE_EXPERIMENTAL_API ..\..\..\cogl\cogl.symbols &gt;&gt; $(DefDir)\cogl.def cl -EP -DCOGL_HAS_GTYPE_SUPPORT -DCOGL_HAS_WIN32_SUPPORT -DCOGL_HAS_GLIB_SUPPORT -DCOGL_HAS_SDL_SUPPORT -DCOGL_ENABLE_EXPERIMENTAL_API ..\..\..\cogl\cogl.symbols &gt;&gt; $(DefDir)\cogl.def
</GenerateCoglSDLDef> </GenerateCoglSDLDef>
<GenerateCoglPathDef> <GenerateCoglPathDef>
echo EXPORTS &gt; $(DefDir)\cogl-path.def echo EXPORTS &gt; $(DefDir)\cogl-path.def
cl -EP ..\..\..\cogl-path\cogl-path.symbols &gt;&gt; $(DefDir)\cogl-path.def cl -EP -DCOGL_HAS_GTYPE_SUPPORT ..\..\..\cogl-path\cogl-path.symbols &gt;&gt; $(DefDir)\cogl-path.def
</GenerateCoglPathDef> </GenerateCoglPathDef>
<GenerateCoglPangoDef> <GenerateCoglPangoDef>
echo EXPORTS &gt; $(DefDir)\cogl-pango.def echo EXPORTS &gt; $(DefDir)\cogl-pango.def

View File

@ -75,21 +75,21 @@ cd $(SolutionDir)&#x0D;&#x0A;
Name="GenerateCoglDef" Name="GenerateCoglDef"
Value=" Value="
echo EXPORTS &gt; $(DefDir)\cogl.def&#x0D;&#x0A; echo EXPORTS &gt; $(DefDir)\cogl.def&#x0D;&#x0A;
cl -EP -D_COGL_SUPPORTS_GTYPE_INTEGRATION -DCOGL_HAS_WIN32_SUPPORT -DCOGL_HAS_GLIB_SUPPORT -DCOGL_ENABLE_EXPERIMENTAL_API ..\..\..\cogl\cogl.symbols &gt;&gt; $(DefDir)\cogl.def&#x0D;&#x0A; cl -EP -DCOGL_HAS_GTYPE_SUPPORT -DCOGL_HAS_WIN32_SUPPORT -DCOGL_HAS_GLIB_SUPPORT -DCOGL_ENABLE_EXPERIMENTAL_API ..\..\..\cogl\cogl.symbols &gt;&gt; $(DefDir)\cogl.def&#x0D;&#x0A;
" "
/> />
<UserMacro <UserMacro
Name="GenerateCoglSDLDef" Name="GenerateCoglSDLDef"
Value=" Value="
echo EXPORTS &gt; $(DefDir)\cogl.def&#x0D;&#x0A; echo EXPORTS &gt; $(DefDir)\cogl.def&#x0D;&#x0A;
cl -EP -D_COGL_SUPPORTS_GTYPE_INTEGRATION -DCOGL_HAS_WIN32_SUPPORT -DCOGL_HAS_GLIB_SUPPORT -DCOGL_HAS_SDL_SUPPORT -DCOGL_ENABLE_EXPERIMENTAL_API ..\..\..\cogl\cogl.symbols &gt;&gt; $(DefDir)\cogl.def&#x0D;&#x0A; cl -EP -DCOGL_HAS_GTYPE_SUPPORT -DCOGL_HAS_WIN32_SUPPORT -DCOGL_HAS_GLIB_SUPPORT -DCOGL_HAS_SDL_SUPPORT -DCOGL_ENABLE_EXPERIMENTAL_API ..\..\..\cogl\cogl.symbols &gt;&gt; $(DefDir)\cogl.def&#x0D;&#x0A;
" "
/> />
<UserMacro <UserMacro
Name="GenerateCoglPathDef" Name="GenerateCoglPathDef"
Value=" Value="
echo EXPORTS &gt; $(DefDir)\cogl-path.def&#x0D;&#x0A; echo EXPORTS &gt; $(DefDir)\cogl-path.def&#x0D;&#x0A;
cl -EP ..\..\..\cogl-path\cogl-path.symbols &gt;&gt; $(DefDir)\cogl-path.def&#x0D;&#x0A; cl -EP -DCOGL_HAS_GTYPE_SUPPORT ..\..\..\cogl-path\cogl-path.symbols &gt;&gt; $(DefDir)\cogl-path.def&#x0D;&#x0A;
" "
/> />
<UserMacro <UserMacro