Skip to content

Commit a98d00f

Browse files
committed
makefile: gui_, bring up gui when it is responsive
Do not bring up GUI while it is unresponsive and the OS is complaining about it and there's nothing for the user to do, except to comfort the OS that the application has not crashed by clicking on the "don't close the application" button. Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 8ffe1d0 commit a98d00f

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
@@ -571,9 +571,11 @@ open_$(1): open_$(2)
571571
endef
572572

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

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

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

10331033
# Write a def for the corresponding odb
10341034
$(foreach file,$(RESULTS_ODB),$(file).def): %.def:

flow/scripts/gui.tcl

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)