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

Unified Diff: remoting/client/opengl/BUILD.gn

Issue 2036023003: Script to inline shader into C header file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Comments Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: remoting/client/opengl/BUILD.gn
diff --git a/remoting/client/opengl/BUILD.gn b/remoting/client/opengl/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..2231b5ea223de22279ba3ad220cf8e732919a227
--- /dev/null
+++ b/remoting/client/opengl/BUILD.gn
@@ -0,0 +1,18 @@
+shaders = [
+ "tex_coord_to_view.vert",
+ "draw_tex.frag",
+]
+
+action("inline_shaders") {
+ script = "../../tools/build/remoting_c_text_inliner.py"
Jamie 2016/06/04 00:24:37 I think the script name would be better as somethi
Yuwei 2016/06/04 01:31:42 Done.
+ out_path = "${root_gen_dir}/remoting/client/opengl/shaders.h"
+ inputs = shaders
+ include_guard = "REMOTING_CLIENT_OPENGL_SHADERS_H_"
Jamie 2016/06/04 00:24:37 Using the same include guard for every invocation
Yuwei 2016/06/04 00:37:07 Hmm... But I think this action should only be call
Yuwei 2016/06/04 01:31:42 Done.
+ outputs = [
+ out_path,
+ ]
+ args = [
+ include_guard,
+ rebase_path(out_path),
+ ] + rebase_path(shaders)
+}
« no previous file with comments | « no previous file | remoting/tools/build/remoting_c_text_inliner.py » ('j') | remoting/tools/build/remoting_c_text_inliner.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698