Skip to content
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

verilog language plugin #316

Closed
wants to merge 62 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
478b246
install private libraries
felix-salfelder Oct 15, 2017
915334c
moving forward with plugins
felix-salfelder Oct 16, 2017
fb3cf1a
try something
felix-salfelder Oct 16, 2017
4b5b3a4
move main to main.
felix-salfelder Dec 5, 2017
0901fec
fix wrapper and tests
felix-salfelder Dec 5, 2017
c61657e
move file
felix-salfelder Dec 5, 2017
fc01b4a
try to fix resources.
felix-salfelder Dec 5, 2017
823c38b
trying to figure out resources more
felix-salfelder Dec 5, 2017
2ebe25d
remove link order hack.
felix-salfelder Dec 5, 2017
46cf18c
try to make windows happy again (x2)
felix-salfelder Dec 5, 2017
a184c09
trying to resolve circular dependency
felix-salfelder Dec 5, 2017
796dfb5
make qucs-test happy
felix-salfelder Dec 5, 2017
765ac3e
fix typo
felix-salfelder Dec 6, 2017
d93fd46
fix wrapper once more
felix-salfelder Dec 6, 2017
a7a5d4e
add qucs to CLEANFILES
felix-salfelder Dec 6, 2017
557abcf
QT_CFLAGS (was: QT_includes)
felix-salfelder Apr 22, 2018
ec46e69
fix plugins in library tests
felix-salfelder Jul 16, 2018
dffcadc
more libs
felix-salfelder Dec 8, 2018
2a54af9
again
felix-salfelder Dec 8, 2018
982246a
don't use libqucsgui
felix-salfelder Dec 8, 2018
f9c3d3d
import dispatcher
felix-salfelder Dec 8, 2018
71e7004
more
felix-salfelder Dec 8, 2018
68e4179
missing files
felix-salfelder Dec 8, 2018
9d83c48
try and make CI happy
felix-salfelder Dec 9, 2018
48cee04
disable/postpone apple travis
felix-salfelder Dec 12, 2018
6686e84
glibtoolize for darwin
felix-salfelder Jul 18, 2015
ca8d4fc
base classes for simulators and netlisters
felix-salfelder Jul 17, 2015
a5fbd72
use libtool to handle plugin(s) in autotools build
felix-salfelder Jul 17, 2015
cce12d7
QUCS_PLUGPATH stub
felix-salfelder Dec 8, 2018
048433e
starting to move qucsator netlister to qucsator plugin
felix-salfelder Jul 18, 2015
aac30fc
netlang in main
felix-salfelder Dec 9, 2018
f3e8ace
command header
felix-salfelder Dec 9, 2018
d2c4492
cleanup
felix-salfelder Dec 9, 2018
19851f1
dispatch commands, just to be sure
felix-salfelder Dec 9, 2018
1398a42
printCommand
felix-salfelder Dec 9, 2018
3ea98c8
command and dots
felix-salfelder Dec 9, 2018
6b7aed8
fix
felix-salfelder Dec 9, 2018
2c470e3
fix "Model" value in commands
felix-salfelder Dec 9, 2018
10fc999
Continue netlisting
felix-salfelder Dec 2, 2018
6f32932
verilog netlister stub
felix-salfelder Dec 2, 2018
9138247
save leading dots for command names.
felix-salfelder Dec 2, 2018
e20f68b
fix dist
felix-salfelder Feb 21, 2016
0874900
merge fuzz
felix-salfelder Dec 2, 2018
a2a7ac3
export GUI stub
felix-salfelder Oct 12, 2017
62645c4
make distcheck happy
felix-salfelder Dec 8, 2018
fff0cba
handle a few errors
felix-salfelder Dec 8, 2018
25606fd
starting to untangle "qucsator" language.
felix-salfelder Dec 8, 2018
908ca8b
trying to figure out embedded sckt decl hack
felix-salfelder Dec 8, 2018
812b27f
found bug in giveNodeNames
felix-salfelder Dec 9, 2018
4252583
hmmm
felix-salfelder Dec 9, 2018
ef553a1
compile fix
felix-salfelder Dec 9, 2018
cbaff60
remove debugging
felix-salfelder Dec 9, 2018
d964871
postpone command dispatcher use
felix-salfelder Dec 9, 2018
c34659e
fix extra dot
felix-salfelder Dec 9, 2018
ca3a9a2
cleanup
felix-salfelder Dec 10, 2018
238d11e
misc main
felix-salfelder Dec 10, 2018
d7c7c3a
newline fix
felix-salfelder Dec 10, 2018
2c933cf
platform.h
felix-salfelder Dec 10, 2018
38b9ba1
try and avoid windows.h collisions
felix-salfelder Dec 10, 2018
53550f4
trying to workaround mingw
felix-salfelder Dec 10, 2018
d133054
rearrange
felix-salfelder Dec 10, 2018
69d780a
import findfile, load other plugins at runtime
felix-salfelder Dec 12, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ addons:

matrix:
include:
- os: linux
compiler: gcc
env: BUILD=cmake
addons:
apt:
packages:
- *native_deps
# - os: linux
# compiler: gcc
# env: BUILD=cmake
# addons:
# apt:
# packages:
# - *native_deps

- os: linux
compiler: gcc
Expand Down Expand Up @@ -77,12 +77,12 @@ matrix:
- pgf
- python-tk

- os: osx
# Qt 4.8.7 official installer works up to OSX 10.10 or xcode6.4
# Use bottle (with Qt3Support) from cartr/qt4
osx_image: xcode8.3
compiler: clang
env: BUILD=autotools
# - os: osx
# # Qt 4.8.7 official installer works up to OSX 10.10 or xcode6.4
# # Use bottle (with Qt3Support) from cartr/qt4
# osx_image: xcode8.3
# compiler: clang
# env: BUILD=autotools

# Set secure environment with encrypted string containing GIT_NAME, GIT_EMAIL and GH_TOKEN
env:
Expand Down
1 change: 1 addition & 0 deletions qucs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ SUBDIRS = \
translations \
contrib \
examples \
main \
tests \
$(RELEASEDIRS)

Expand Down
5 changes: 5 additions & 0 deletions qucs/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ case `uname` in
*Darwin*) LIBTOOLIZE=glibtoolize ;;
esac

case `uname` in
*Darwin*) LIBTOOLIZE=glibtoolize ;;
*) LIBTOOLIZE=libtoolize ;;
esac

echo -n "Creating aclocal.m4... "
${ACLOCAL:-aclocal} -I m4
echo "done."
Expand Down
10 changes: 6 additions & 4 deletions qucs/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dnl Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_CHECK_TOOL(AR, ar, :)
LT_INIT()
LT_INIT([win32-dll])

PKG_CONFIG=pkg-config

Expand Down Expand Up @@ -215,15 +215,15 @@ case $host_os in
dnl Set Clang
if test "$CXX -dM -E - < /dev/null | grep __clang__" ; then
CFLAGS="$CFLAGS -pipe"
CXXFLAGS="$CXXFLAGS -pipe -fno-exceptions -Wno-deprecated-register"
CXXFLAGS="$CXXFLAGS -pipe -Wno-deprecated-register"
LDDFLAGS="$LDDFLAGS"
use_CLANG="yes"
fi

dnl Set GCC.
if test "x$use_CLANG" != "xyes" -a "x$GCC" = "xyes" ; then
CFLAGS="$CFLAGS -pipe"
CXXFLAGS="$CXXFLAGS -pipe -fno-exceptions -fno-check-new"
CXXFLAGS="$CXXFLAGS -pipe -fno-check-new"
if test x$WIN32 = xyes; then
CXXFLAGS="$CXXFLAGS"
fi
Expand Down Expand Up @@ -808,6 +808,7 @@ AH_TOP([
dnl Add here all your Makefiles. These are created by configure.
AC_CONFIG_FILES([Makefile
contrib/Makefile
main/Makefile
man/Makefile
examples/Makefile
qucs-filter/Makefile
Expand All @@ -828,6 +829,7 @@ AC_CONFIG_FILES([Makefile
qucs/diagrams/Makefile
qucs/paintings/Makefile
qucs/dialogs/Makefile
qucs/sim/Makefile
qucs/tests/Makefile
tests/Makefile
translations/Makefile
Expand All @@ -843,7 +845,7 @@ AC_CONFIG_FILES([Makefile
qucs-transcalc/qucstrans.1
qucs-powercombining/qucspowercombining.1])

AC_CONFIG_FILES([qucs/qucs], [chmod +x qucs/qucs])
AC_CONFIG_FILES([main/qucs], [chmod +x main/qucs])

dnl Check for Git short SHA to tag version
dnl The release package should also keep it on the config.h
Expand Down
58 changes: 58 additions & 0 deletions qucs/main/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
## Process this file with automake to produce Makefile.in
#
# Makefile.am
#
# Automake input file.
#
# Copyright (C) 2016-18 Felix Salfelder
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this package; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
# Boston, MA 02110-1301, USA.
#

qucs_appledir = $(bindir)/qucs.app/Contents/MacOS/

include ../common.mk

all-local: qucs

# why this? qucs_real_LDADD does not seem to work on windows (yet?)

qucs_real_LDFLAGS = $(QT_LDFLAGS)
qucs_real_SOURCES = main.cpp # qucs_.qrc
qucs_real_CPPFLAGS = ${AM_CPPFLAGS} $(QT_CFLAGS) -I${top_srcdir}/qucs\
-DQUCS_PLUGPATH=\"${pkglibdir}\"

if COND_WIN32
qucs_real_LDADD = \
../qucs/libqucs.la \
../qucs/libqucsschematic.la
else
qucs_real_LDADD = \
../qucs/libqucs.la \
../qucs/libqucsschematic.la \
$(X11_LIBS) $(QT_LIBS)
endif

if COND_MACOSX
qucs_apple_PROGRAMS = qucs.real
else
endif

bin_PROGRAMS = qucs.real
transform=s&\.real$$&&;$(program_transform_name)

EXTRA_DIST = io_findf.cc
CLEANFILES = qucs_.cpp
79 changes: 79 additions & 0 deletions qucs/main/io_findf.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/*$Id: io_findf.cc 2016/05/15 al $ -*- C++ -*-
* Copyright (C) 2001 Albert Davis
* Author: Albert Davis <aldavis@gnu.org>
*
* This file is part of "Gnucap", the Gnu Circuit Analysis Package
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*------------------------------------------------------------------
* Modified by AD. Sent to me by C-WARE
* This file contains the routine to locate a file,
* using a path string for the directories to search.
* Interface:
* findfile(filename, paths, mode)
* filename is the name of the file to be searched for,
* paths is the path to follow to find it.
* mode is how you want to open the file
* returns full path name, if successful, else "".
*
* PATHSEP, ENDDIR are system dependent, defined in md.h
*/
//testing=script,complete 2017.03.12
//#include "l_lib.h"
#include "platform.h" // PATHSEP
/*--------------------------------------------------------------------------*/
// from io_
#include <unistd.h> /* chdir, access, getcwd */
namespace OS{
inline bool access_ok(const std::string& file, int mode) {
return (::access(file.c_str(), mode) == 0/*file_ok*/);
}
}
/*--------------------------------------------------------------------------*/
inline std::string findfile(const std::string& filename, const std::string& path, int mode)
{
#ifdef CHECK_LOCAL_FIRST
if (OS::access_ok(filename, mode)) {untested();
return filename;
}else{untested();
}
#endif
// for each item in the path
for (std::string::const_iterator
p_ptr=path.begin(); p_ptr!=path.end(); ++p_ptr) {
// p_ptr changed internally ^^^^^ skip sep
std::string target = "";
while (*p_ptr != PATHSEP && p_ptr != path.end()) { // copy 1 path item
target += *p_ptr++;
}
if (!target.empty() && !strchr(ENDDIR,p_ptr[-1])) {
target += *ENDDIR; // append '/' if needed
}else{
}

target += filename;
if (OS::access_ok(target, mode)) { // found it
return target;
}else if (p_ptr==path.end()) { // ran out of path, didn't find it
return "";
}else{ // else try again
}
}
return ""; // path doesn't exist - didn't go thru loop at all
}
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
// vim:ts=8:sw=2:noet:
Loading