Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
S
swiftshader
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • swiftshader
  • Repository

Switch branch/tag
  • swiftshader
  • third_party
  • angle
  • CMakeLists.txt
Find file
BlameHistoryPermalink
  • Antonio Maiorano's avatar
    Add CMake script to setup and build ANGLE · 4e39779a
    Antonio Maiorano authored Jul 27, 2020
    This change adds CMake targets that setup and build ANGLE by invoking
    gclient and gn. The 'angle-setup' target should run only once (if the
    .gclient file does not exist), and the 'angle' target will build if any
    source file under angle/src is modfied.
    
    The 'angle' target builds libEGL and libGLESv2 into
    ${CMAKE_BINARY_DIR}/bin-angle. Furthermore, if building PowerVR examples are
    enabled (SWIFTSHADER_BUILD_PVR), the PVR output folder,
    ${CMAKE_BINARY_DIR}/bin, gets copied to ${CMAKE_BINARY_DIR}/bin-angle
    first. Finally, a script named 'export-swangle-env.bat/sh' also gets
    copied to ${CMAKE_BINARY_DIR}/bin-angle, which sets environment
    variables so that the PowerVR examples will run on "SWANGLE" (that is,
    on ANGLE on SwiftShaderVK).
    
    Example on Linux:
    
    cd SwiftShader/build
    cmake -DSWIFTSHADER_BUILD_PVR=1 -DSWIFTSHADER_BUILD_ANGLE=1 ..
    cmake --build . --target angle
    source bin-angle/export-swangle-env.sh
    ./bin-angle/OpenGLESBumpmap
    
    On Windows, run bin-angle\export-swangle-env.bat, and execute the
    examples from the bin-angle directory.
    
    Bug: b/152028822
    Change-Id: Idd06fb1b6f14b47740692352d353f3a0c9588a90
    Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/47109Tested-by: 's avatarAntonio Maiorano <amaiorano@google.com>
    Kokoro-Result: kokoro <noreply+kokoro@google.com>
    Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
    4e39779a
CMakeLists.txt 4.01 KB
EditWeb IDE
×

Replace CMakeLists.txt

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.