Skip to content

Commit c9fe571

Browse files
jpc-lip6robtaylor
authored andcommitted
Adding Tutorial to meson build.
1 parent a56d919 commit c9fe571

File tree

7 files changed

+57
-5
lines changed

7 files changed

+57
-5
lines changed

cumulus/src/designflow/pnr.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ def doTask ( self ):
6565
else:
6666
print( 'PnR.doTask() run in interactive CGT mode.' )
6767
PnR.textMode = False
68-
#from .. import Etesian, Anabatic, Katana, Bora, Tramontana, Tutorial, Viewer, Unicorn
69-
from .. import Etesian, Anabatic, Katana, Bora, Tramontana, Viewer, Unicorn
68+
from .. import Etesian, Anabatic, Katana, Bora, Tramontana, Tutorial, Viewer, Unicorn
7069

7170
ShellEnv().export()
7271
if self.script and not callable(self.script):
@@ -88,7 +87,7 @@ def doTask ( self ):
8887
unicorn.registerTool ( Katana.GraphicKatanaEngine.grab() )
8988
unicorn.registerTool ( Tramontana.GraphicTramontanaEngine.grab() )
9089
unicorn.registerTool ( Bora.GraphicBoraEngine.grab() )
91-
#unicorn.registerTool ( Tutorial.GraphicTutorialEngine.grab() )
90+
unicorn.registerTool ( Tutorial.GraphicTutorialEngine.grab() )
9291
#unicorn.setAnonNetSelectable(False)
9392
unicorn.setLayerVisible ( "grid" , False );
9493
unicorn.setLayerVisible ( "text.instance" , False );

meson.build

+1
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,5 @@ subdir('oroshi')
8787
subdir('bora')
8888
subdir('unicorn')
8989
subdir('cumulus')
90+
subdir('tutorial')
9091

tutorial/meson.build

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
subdir('src')
2+
subdir('python')
3+
4+
Tutorial = declare_dependency(
5+
link_with: [tutorial],
6+
include_directories: include_directories('src'),
7+
dependencies: [CrlCore]
8+
)
9+

tutorial/python/meson.build

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
3+
py.install_sources(
4+
'runDemo.py',
5+
subdir: 'coriolis/plugins',
6+
)
7+

tutorial/python/runDemo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from coriolis.helpers import trace, l, u, n
2626
from coriolis.helpers.io import showPythonTrace, ErrorMessage, WarningMessage
2727
from coriolis.helpers.overlay import UpdateSession
28-
import coriolis.cumulus.plugins as plugins
28+
import coriolis.plugins as plugins
2929
except ImportError as e:
3030
serror = str(e)
3131
if serror.startswith('No module named'):

tutorial/src/PyTutorialEngine.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
#include "hurricane/isobar/PyCell.h"
18-
#include "hurricane/isobar/PyCellViewer.h"
18+
#include "hurricane/viewer/PyCellViewer.h"
1919
#include "hurricane/viewer/ExceptionWidget.h"
2020
#include "hurricane/Cell.h"
2121
#include "crlcore/Utilities.h"

tutorial/src/meson.build

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
tutorial_mocs = qt.compile_moc(
2+
headers: [
3+
'tutorial/GraphicTutorialEngine.h',
4+
],
5+
dependencies: [Anabatic],
6+
)
7+
8+
tutorial_py = files([
9+
'PyTutorial.cpp',
10+
'PyTutorialEngine.cpp',
11+
'PyGraphicTutorialEngine.cpp',
12+
])
13+
14+
15+
tutorial = shared_library(
16+
'tutorial',
17+
18+
'GraphicTutorialEngine.cpp',
19+
'TutorialEngine.cpp',
20+
tutorial_mocs,
21+
tutorial_py,
22+
dependencies: [CrlCore],
23+
install: true,
24+
)
25+
26+
py.extension_module(
27+
'Tutorial',
28+
29+
tutorial_py,
30+
31+
link_with: [tutorial],
32+
dependencies: [py_mod_deps, CrlCore],
33+
install: true,
34+
subdir: 'coriolis'
35+
)
36+

0 commit comments

Comments
 (0)