Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Side by Side Diff: experimental/c-api-example/c.md

Issue 1349163003: experiment/fiddle (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 &mdash; FOR INTERNAL TESTING ONLY</strong> 6 DO NOT USE &mdash; 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698