mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
Cleaner build process
Change-Id: I6ecc7b77437397859f8ebb79ace48aaa9c1c2047
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -27,5 +27,9 @@ kandinsky/src/font.h
|
||||
apps/picview/image.raw
|
||||
apps/picview/image.c
|
||||
|
||||
# No AST file
|
||||
*.ast
|
||||
*.ast.json
|
||||
|
||||
# Quiz output
|
||||
quiz/src/symbols.c
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
products += build/struct_layout/apps_container_layout.json
|
||||
build/struct_layout/apps_container_layout.json:
|
||||
@echo "AST $@"
|
||||
@clang -cc1 -x c++ -v -fdump-record-layouts apps/main.cpp -Iescher/include -Ikandinsky/include -Iion/include -Ipoincare/include -std=c++11 -emit-llvm-only -o /dev/null > foo.txt
|
||||
@echo "JSON $@"
|
||||
@cat foo.txt | ruby build/struct_layout/ast_to_json.rb AppsContainer > $@
|
||||
@rm foo.txt
|
||||
products += apps/main.ast build/struct_layout/data.json
|
||||
|
||||
%.ast: %.cpp %.o
|
||||
@echo "AST $@"
|
||||
@$(CXX) -fno-color-diagnostics -Xclang -fdump-record-layouts $(SFLAGS) $(CXXFLAGS) -MF /dev/null -c $< -o /dev/null > $@
|
||||
|
||||
%.ast.json: %.ast
|
||||
@echo "JSON $@"
|
||||
@cat $< | ruby build/struct_layout/ast_to_json.rb AppsContainer > $@
|
||||
|
||||
@@ -104,7 +104,7 @@ grandparent.append("text")
|
||||
.attr("y", 6 - margin.top)
|
||||
.attr("dy", ".75em");
|
||||
|
||||
d3.json("apps_container_layout.json", function(root) {
|
||||
d3.json("../apps/main.ast.json", function(root) {
|
||||
initialize(root);
|
||||
accumulate(root);
|
||||
layout(root);
|
||||
|
||||
Reference in New Issue
Block a user