Commit b0397118 by Corentin Wallez Committed by Nicolas Capens

libGLESv2: compile entry points in the shared library.

Without this the GN shared library doesn't export any of the gl entry-points making it useless. Bug swiftshader:86 Change-Id: I97f6acf4204d6e908ad12c89c79d40769dc824a4 Reviewed-on: https://swiftshader-review.googlesource.com/13308Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 708c24b3
...@@ -35,6 +35,7 @@ COMMON_SRC_FILES := \ ...@@ -35,6 +35,7 @@ COMMON_SRC_FILES := \
libGLESv2.cpp \ libGLESv2.cpp \
libGLESv3.cpp \ libGLESv3.cpp \
main.cpp \ main.cpp \
entry_points.cpp \
Program.cpp \ Program.cpp \
Query.cpp \ Query.cpp \
Renderbuffer.cpp \ Renderbuffer.cpp \
......
...@@ -101,6 +101,7 @@ swiftshader_shared_library("swiftshader_libGLESv2") { ...@@ -101,6 +101,7 @@ swiftshader_shared_library("swiftshader_libGLESv2") {
] ]
sources = [ sources = [
"entry_points.cpp",
"libGLESv2.def", "libGLESv2.def",
"libGLESv2.rc", "libGLESv2.rc",
] ]
......
...@@ -344,6 +344,7 @@ copy "$(OutDir)libGLESv2.dll" "$(SolutionDir)lib\$(Configuration)_$(Platform)\tr ...@@ -344,6 +344,7 @@ copy "$(OutDir)libGLESv2.dll" "$(SolutionDir)lib\$(Configuration)_$(Platform)\tr
<ClCompile Include="Context.cpp" /> <ClCompile Include="Context.cpp" />
<ClCompile Include="..\common\debug.cpp" /> <ClCompile Include="..\common\debug.cpp" />
<ClCompile Include="Device.cpp" /> <ClCompile Include="Device.cpp" />
<ClCompile Include="entry_points.cpp" />
<ClCompile Include="Fence.cpp" /> <ClCompile Include="Fence.cpp" />
<ClCompile Include="Framebuffer.cpp" /> <ClCompile Include="Framebuffer.cpp" />
<ClCompile Include="IndexDataManager.cpp" /> <ClCompile Include="IndexDataManager.cpp" />
......
...@@ -77,6 +77,9 @@ ...@@ -77,6 +77,9 @@
<ClCompile Include="..\common\Image.cpp"> <ClCompile Include="..\common\Image.cpp">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="entry_points.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="Buffer.h"> <ClInclude Include="Buffer.h">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment