GodotBuilder / godot-builds

Deploys Godot Engine release binaries via Travis CI and AppVeyor
https://godotengine.org
44 stars 12 forks source link

Add build of gdnative_wrapper static library #10

Closed touilleMan closed 6 years ago

touilleMan commented 6 years ago

Not 100% sure about this PR (I've never used appveyor for instance ^^)

The key point is this gdnative wrapper library is needed (strictly speaking you could do without it, but it's much more of a pita...) for any extension willing to use gdnative. Given we are getting closer of 3.0, I'd like to release a pre-version of godot-python to beta testers to give us a much better confidence toward gdnative and pluginscript api and stability. This would be a lot easier to do with those gdnative wrapper already compiled for all the architectures (I still have to compile&package CPython and/or Pypy, which is enough of pain for me already ^^)

touilleMan commented 6 years ago

@akien-mga have you been notified of this ? :smiley:

touilleMan commented 6 years ago

better ?

akien-mga commented 6 years ago

Let's give it a try with a test build :)

touilleMan commented 6 years ago

\o/

touilleMan commented 6 years ago

Seems I got the wrong name for the window version:

build_gdnative_wrapper_code(["modules\gdnative\gdnative_wrapper_code.gen.cpp"], ["modules\gdnative\gdnative_api.json"])
build_gdnative_api_struct(["modules\gdnative\include\gdnative_api_struct.gen.h", "modules\gdnative\gdnative_api_struct.gen.cpp"], ["modules\gdnative\gdnative_api.json"])
cl /Fomodules\gdnative\gdnative_wrapper_code.gen.windows.opt.tools.64.obj /c modules\gdnative\gdnative_wrapper_code.gen.cpp /TP /TP /nologo /O2 /DDEBUG_ENABLED /MT /Gd /GR /nologo "/IC:\Program Files (x86)\Windows Kits\10\/Include" /DWINDOWS_ENABLED /DOPENGL_ENABLED /DRTAUDIO_ENABLED /DWASAPI_ENABLED /DTYPED_METHOD_BIND /DWIN32 /DWINVER=0x0601 /D_WIN32_WINNT=0x0601 /D_WIN64 "/IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\ATLMFC\include" "/IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include" "/IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "/IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" "/IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" "/IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" "/IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" /I /w /EHsc -DZSTD_STATIC_LINKING_ONLY -DFT2_BUILD_LIBRARY -DZLIB_DEBUG -DFREETYPE_ENABLED -fPIC /DMSVC /GR -DPTRCALL_ENABLED -DTOOLS_ENABLED -DGDSCRIPT_ENABLED -DMINIZIP_ENABLED -DXML_ENABLED -DGLAD_ENABLED -DGLES_OVER_GL /Icore /Icore\math /Ieditor /Idrivers /I. /Iplatform\windows /Ithirdparty\zstd /Ithirdparty\zstd\common /Ithirdparty\zlib /Ithirdparty\rtaudio /Ithirdparty\glad /Ithirdparty\bullet\src /Ithirdparty\freetype /Ithirdparty\freetype\include /Ithirdparty\libpng /Imodules\gdnative\include
cl : Command line warning D9002 : ignoring unknown option '-fPIC'
gdnative_wrapper_code.gen.cpp
lib /nologo /OUT:bin\gdnative_wrapper_code.windows.opt.tools.64.lib modules\gdnative\gdnative_wrapper_code.gen.windows.opt.tools.64.obj

So it should be gdnative_wrapper_code.*.lib Beside -fPIC shouldn't be provided under windows, I'll fix this on the main godot repo