OLD | NEW |
1 Skia's Stable C API | 1 Skia's Stable C API |
2 =================== | 2 =================== |
3 | 3 |
4 <div style="text-align:center"> | 4 <div style="text-align:center"> |
5 <strong>EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL<br> | 5 <strong>EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL<br> |
6 DO NOT USE — FOR INTERNAL TESTING ONLY</strong> | 6 DO NOT USE — FOR INTERNAL TESTING ONLY</strong> |
7 </div> | 7 </div> |
8 | 8 |
9 Several issues hinder the development of a stable ABI (application | 9 Several issues hinder the development of a stable ABI (application |
10 binary interface) for Skia: | 10 binary interface) for Skia: |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 cd $(mktemp -d /tmp/skiaXXXX) | 117 cd $(mktemp -d /tmp/skiaXXXX) |
118 git clone 'https://skia.googlesource.com/skia' | 118 git clone 'https://skia.googlesource.com/skia' |
119 cmake -DCMAKE_INSTALL_PREFIX:PATH="$prefix" skia/cmake | 119 cmake -DCMAKE_INSTALL_PREFIX:PATH="$prefix" skia/cmake |
120 cmake --build . --target skia | 120 cmake --build . --target skia |
121 cmake --build . --target install | 121 cmake --build . --target install |
122 | 122 |
123 2. Compile, link, and run the example program: | 123 2. Compile, link, and run the example program: |
124 | 124 |
125 <!--?prettify lang=sh?--> | 125 <!--?prettify lang=sh?--> |
126 | 126 |
127 cc -o skia-c-example -I "$prefix/include" \ | 127 cc -o skia-c-example -I "$prefix/include/skia/c" \ |
128 skia/experimental/c-api-example/skia-c-example.c \ | 128 skia/experimental/c-api-example/skia-c-example.c \ |
129 "$prefix"/lib/libskia.* -Wl,-rpath -Wl,"$prefix/lib" | 129 "$prefix"/lib/libskia.* -Wl,-rpath -Wl,"$prefix/lib" |
130 ./skia-c-example | 130 ./skia-c-example |
131 [ $(uname) = Darwin ] && open skia-c-example.png | 131 [ $(uname) = Darwin ] && open skia-c-example.png |
132 [ $(uname) = Linux ] && xdg-open skia-c-example.png | 132 [ $(uname) = Linux ] && xdg-open skia-c-example.png |
OLD | NEW |