-
Notifications
You must be signed in to change notification settings - Fork 56
recipes_emscripten: add ngspice #453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
proppy
wants to merge
11
commits into
emscripten-forge:main
Choose a base branch
from
proppy:ngspice
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6b119b2
recipes_emscripten: add ngspice
proppy 19f8ff3
recipes_emscripten/ngspice: rename to ngspice
proppy 2b75630
recipes_emscripten/ngspice: ship lib and update test
proppy de7106b
Create overwriteProp.cmake
DerThorsten b2688bd
Merge branch 'main' into ngspice
DerThorsten e429240
Update recipe.yaml
DerThorsten b5ac9d7
Update recipe.yaml
DerThorsten 47027b5
Update recipe.yaml
DerThorsten b809a0e
Update recipe.yaml
DerThorsten faf2ef9
Update recipe.yaml
DerThorsten fbb128c
Update build.sh
DerThorsten File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
# Used by autotools AX_PROG_CC_FOR_BUILD | ||
export CC_FOR_BUILD=${CC} | ||
|
||
./autogen.sh | ||
|
||
configure_args=( | ||
--prefix=${PREFIX} | ||
--disable-debug | ||
--disable-dependency-tracking | ||
--disable-openmp | ||
) | ||
|
||
emconfigure ./configure "${configure_args[@]}" --with-ngshared LDFLAGS="${LDFLAGS}" | ||
emmake make -j${CPU_COUNT} | ||
emmake make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# overwriteProp.cmake | ||
set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS TRUE) | ||
set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-s SIDE_MODULE=1") | ||
set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-s SIDE_MODULE=1") | ||
set(CMAKE_STRIP FALSE) # used by default in pybind11 on .so modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
context: | ||
version: "44.2" | ||
|
||
package: | ||
name: ngspice-lib | ||
version: '${{ version }}' | ||
|
||
source: | ||
url: 'https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/${{ version }}/ngspice-${{ version }}.tar.gz' | ||
sha256: 'e7dadfb7bd5474fd22409c1e5a67acdec19f77e597df68e17c5549bc1390d7fd' | ||
|
||
build: | ||
number: 0 | ||
|
||
requirements: | ||
build: | ||
- autoconf | ||
- automake | ||
- libtool | ||
- make | ||
- bison | ||
- "${{ compiler('c') }}" | ||
- "${{ compiler('cxx') }}" | ||
|
||
tests: | ||
- package_contents: | ||
lib: | ||
- libngspice.so | ||
|
||
about: | ||
homepage: http://ngspice.sourceforge.net | ||
license: BSD-3-Clause | ||
license_file: COPYING | ||
summary: The open source spice simulator for electric and electronic circuits | ||
description: | | ||
ngspice is the open source spice simulator for electric and electronic circuits. | ||
|
||
Such a circuit may comprise of JFETs, bipolar and MOS transistors, passive elements | ||
like R, L, or C, diodes, transmission lines and other devices, all interconnected | ||
in a netlist. Digital circuits are simulated as well, event driven and fast, from | ||
single gates to complex circuits. And you may enter the combination of both analog | ||
and digital as a mixed-signal circuit. | ||
|
||
ngspice offers a wealth of device models for active, passive, analog, and digital | ||
elements. Model parameters are provided by the semiconductor manufacturers. | ||
The user add her circuits as a netlist, and the output is one or more graphs of | ||
currents, voltages and other electrical quantities or is saved in a data file. | ||
|
||
Note: | ||
This build was configured with `--enable-xspice --enable-cider --enable=openmp` | ||
See the [build script](https://git.io/JfVZX) for more specifics. | ||
|
||
extra: | ||
recipe-maintainers: | ||
- proppy | ||
- stuarteberg |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably need to do smth like
See emscripten-core/emscripten#15276 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise cmake refused to build shared libraries with emscripten