Skip to content

Commit 51286a1

Browse files
authored
Merge pull request #2435 from Pinata-Consulting/gui-open-when-responsive
makefile: gui_, bring up gui when it is responsive
2 parents 8f75399 + c606936 commit 51286a1

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

flow/Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -570,9 +570,11 @@ open_$(1): open_$(2)
570570
endef
571571

572572
define OPEN_GUI
573-
.PHONY: $(1)_$(2)
574-
$(1)_$(2):
575-
$(3)=$(RESULTS_DIR)/$(2) $(4) $(SCRIPTS_DIR)/gui.tcl
573+
.PHONY: open_$(1) gui_$(1)
574+
open_$(1):
575+
$(2)=$(RESULTS_DIR)/$(1) $(OPENROAD_NO_EXIT_CMD) $(SCRIPTS_DIR)/open.tcl
576+
gui_$(1):
577+
$$(UNSET_AND_MAKE) GUI_SHOW=1 open_$(1)
576578
endef
577579

578580
# Separate dependency checking and doing a step. This can
@@ -1024,10 +1026,8 @@ $(eval $(call OPEN_GUI_SHORTCUT,route,5_route.odb))
10241026
$(eval $(call OPEN_GUI_SHORTCUT,grt,5_1_grt.odb))
10251027
$(eval $(call OPEN_GUI_SHORTCUT,final,6_final.odb))
10261028

1027-
$(foreach file,$(RESULTS_DEF),$(eval $(call OPEN_GUI,gui,$(file),DEF_FILE,$(OPENROAD_GUI_CMD))))
1028-
$(foreach file,$(RESULTS_ODB),$(eval $(call OPEN_GUI,gui,$(file),ODB_FILE,$(OPENROAD_GUI_CMD))))
1029-
$(foreach file,$(RESULTS_DEF),$(eval $(call OPEN_GUI,open,$(file),DEF_FILE,$(OPENROAD_NO_EXIT_CMD))))
1030-
$(foreach file,$(RESULTS_ODB),$(eval $(call OPEN_GUI,open,$(file),ODB_FILE,$(OPENROAD_NO_EXIT_CMD))))
1029+
$(foreach file,$(RESULTS_DEF),$(eval $(call OPEN_GUI,$(file),DEF_FILE)))
1030+
$(foreach file,$(RESULTS_ODB),$(eval $(call OPEN_GUI,$(file),ODB_FILE)))
10311031

10321032
# Write a def for the corresponding odb
10331033
$(foreach file,$(RESULTS_ODB),$(file).def): %.def:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,9 @@ proc read_timing {input_file} {
5252
if {![env_var_equals GUI_NO_TIMING 1]} {
5353
read_timing $input_file
5454
}
55+
56+
if {[env_var_equals GUI_SHOW 1]} {
57+
# Show the GUI when it is ready; it is unresponsive(with modal requesters
58+
# saying it is unresponsive) until everything is loaded
59+
gui::show
60+
}

0 commit comments

Comments
 (0)