Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gdpd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IVMI
Gdpd
Commits
3dd916f2
Commit
3dd916f2
authored
1 year ago
by
Florent Berthaut
Browse files
Options
Downloads
Patches
Plain Diff
Fixed sconstruct for fiddle
parent
663151f8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SConstruct
+20
-2
20 additions, 2 deletions
SConstruct
demo/Main.tscn
+3
-3
3 additions, 3 deletions
demo/Main.tscn
with
23 additions
and
5 deletions
SConstruct
+
20
−
2
View file @
3dd916f2
...
...
@@ -2,6 +2,24 @@
import
os
import
sys
# First fix fsqrt in fiddle~.c
fiddle_file
=
open
(
"
src/libpd/pure-data/extra/fiddle~/fiddle~.c
"
,
"
r
"
)
fiddle_lines
=
fiddle_file
.
readlines
()
fiddle_file
.
close
()
out_lines
=
[]
for
l
in
fiddle_lines
:
if
l
==
"
#define fsqrt sqrt
\n
"
:
out_lines
.
append
(
"
//#define fsqrt sqrt
\n
"
)
else
:
out_lines
.
append
(
l
)
fiddle_file
=
open
(
"
src/libpd/pure-data/extra/fiddle~/fiddle~.c
"
,
"
w
"
)
fiddle_file
.
writelines
(
out_lines
)
fiddle_file
.
close
()
env
=
SConscript
(
"
src/godot-cpp/SConstruct
"
)
# For the reference:
...
...
@@ -79,14 +97,14 @@ elif env["platform"] == "windows":
if
env
[
"
platform
"
]
==
"
macos
"
:
library
=
env
.
SharedLibrary
(
"
demo/addons/gd
4
pd/bin/libgdpd.{}.{}.framework/libgd4pd.{}.{}
"
.
format
(
"
demo/addons/gdpd/bin/libgdpd.{}.{}.framework/libgd4pd.{}.{}
"
.
format
(
env
[
"
platform
"
],
env
[
"
target
"
],
env
[
"
platform
"
],
env
[
"
target
"
]
),
source
=
sources
,
)
else
:
library
=
env
.
SharedLibrary
(
"
demo/addons/gd
4
pd/bin/libgdpd{}{}
"
.
format
(
env
[
"
suffix
"
],
env
[
"
SHLIBSUFFIX
"
]),
"
demo/addons/gdpd/bin/libgdpd{}{}
"
.
format
(
env
[
"
suffix
"
],
env
[
"
SHLIBSUFFIX
"
]),
source
=
sources
,
)
...
...
This diff is collapsed.
Click to expand it.
demo/Main.tscn
+
3
−
3
View file @
3dd916f2
...
...
@@ -9,9 +9,9 @@ func _ready():
pass
func _process(delta):
while _gdpd.has_message() :
var msg = _gdpd.get_next()
print(\"got message from pd \", msg)
#
while _gdpd.has_message() :
#
var msg = _gdpd.get_next()
#
print(\"got message from pd \", msg)
pass
func _load_patch(pd_patch) :
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment