Hi,
I'm trying to build Skia as a shared library, because I want to use the Lua bindings.
A normal build works as it should. I check out the source, run `./gyp_skia`, `cd out; xcodebuild` and I get a working sample app.
When I attempt to get a shared library (by running `python gyp_skia -Dskia_shared_lib=1`), here is what I get after running `xcodebuild`:
Ld ../xcodebuild/Coverage/bench normal x86_64
cd ~/trunk/gyp
setenv MACOSX_DEPLOYMENT_TARGET 10.8
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -L~/trunk/gyp/../xcodebuild/Coverage -F~/trunk/gyp/../xcodebuild/Coverage -filelist ~/trunk/gyp/../xcodebuild/bench.build/Coverage/bench.build/Objects-normal/x86_64/bench.LinkFileList -mmacosx-version-min=10.8 -fprofile-arcs -ftest-coverage ~/trunk/xcodebuild/Coverage/libskia.dylib -lbench_timer ~/trunk/xcodebuild/Coverage/libflags.a ~/trunk/xcodebuild/Coverage/libjsoncpp.a -Xlinker -dependency_info -Xlinker ~/trunk/gyp/../xcodebuild/bench.build/Coverage/bench.build/Objects-normal/x86_64/bench_dependency_info.dat -o ~/trunk/gyp/../xcodebuild/Coverage/bench
clang: error: no such file or directory: '~/trunk/xcodebuild/Coverage/libskia.dylib'
And indeed, there is no libskia.dylib, just a bunch of static libraries (.a), but not anything called libskia or skia_lib. Attempting to build just skia_lib with `xcodebuild -scheme skia_lib` succeeds, but does not yield either a static or a shared lib either.
If I just do `./gyp_skia; cd out; xcodebuild -scheme skia_lib`, (i.e the non-shared-library build) I still don't get anything called libskia, but from the terminal output, it seems that the primary result of the skia_lib configuration is libskia_skgpu.a
Overall, it seems like setting `skia_shared_lib=1` does not actually lead to the shared library being linked/created correctly on OS X.
Is there any way to fix this or to use the Lua bindings with a static library?