Adding Tutorial to meson build.

This commit is contained in:
Jean-Paul Chaput 2023-10-09 23:32:57 +02:00 committed by Rob Taylor
parent a56d9197bc
commit c9fe5713cf
7 changed files with 57 additions and 5 deletions

View File

@ -65,8 +65,7 @@ class PnR ( FlowTask ):
else:
print( 'PnR.doTask() run in interactive CGT mode.' )
PnR.textMode = False
#from .. import Etesian, Anabatic, Katana, Bora, Tramontana, Tutorial, Viewer, Unicorn
from .. import Etesian, Anabatic, Katana, Bora, Tramontana, Viewer, Unicorn
from .. import Etesian, Anabatic, Katana, Bora, Tramontana, Tutorial, Viewer, Unicorn
ShellEnv().export()
if self.script and not callable(self.script):
@ -88,7 +87,7 @@ class PnR ( FlowTask ):
unicorn.registerTool ( Katana.GraphicKatanaEngine.grab() )
unicorn.registerTool ( Tramontana.GraphicTramontanaEngine.grab() )
unicorn.registerTool ( Bora.GraphicBoraEngine.grab() )
#unicorn.registerTool ( Tutorial.GraphicTutorialEngine.grab() )
unicorn.registerTool ( Tutorial.GraphicTutorialEngine.grab() )
#unicorn.setAnonNetSelectable(False)
unicorn.setLayerVisible ( "grid" , False );
unicorn.setLayerVisible ( "text.instance" , False );

View File

@ -87,4 +87,5 @@ subdir('oroshi')
subdir('bora')
subdir('unicorn')
subdir('cumulus')
subdir('tutorial')

9
tutorial/meson.build Normal file
View File

@ -0,0 +1,9 @@
subdir('src')
subdir('python')
Tutorial = declare_dependency(
link_with: [tutorial],
include_directories: include_directories('src'),
dependencies: [CrlCore]
)

View File

@ -0,0 +1,7 @@
py.install_sources(
'runDemo.py',
subdir: 'coriolis/plugins',
)

View File

@ -25,7 +25,7 @@ try:
from coriolis.helpers import trace, l, u, n
from coriolis.helpers.io import showPythonTrace, ErrorMessage, WarningMessage
from coriolis.helpers.overlay import UpdateSession
import coriolis.cumulus.plugins as plugins
import coriolis.plugins as plugins
except ImportError as e:
serror = str(e)
if serror.startswith('No module named'):

View File

@ -15,7 +15,7 @@
#include "hurricane/isobar/PyCell.h"
#include "hurricane/isobar/PyCellViewer.h"
#include "hurricane/viewer/PyCellViewer.h"
#include "hurricane/viewer/ExceptionWidget.h"
#include "hurricane/Cell.h"
#include "crlcore/Utilities.h"

36
tutorial/src/meson.build Normal file
View File

@ -0,0 +1,36 @@
tutorial_mocs = qt.compile_moc(
headers: [
'tutorial/GraphicTutorialEngine.h',
],
dependencies: [Anabatic],
)
tutorial_py = files([
'PyTutorial.cpp',
'PyTutorialEngine.cpp',
'PyGraphicTutorialEngine.cpp',
])
tutorial = shared_library(
'tutorial',
'GraphicTutorialEngine.cpp',
'TutorialEngine.cpp',
tutorial_mocs,
tutorial_py,
dependencies: [CrlCore],
install: true,
)
py.extension_module(
'Tutorial',
tutorial_py,
link_with: [tutorial],
dependencies: [py_mod_deps, CrlCore],
install: true,
subdir: 'coriolis'
)