Skip to content

Commit

Permalink
IGL_HEADER_ONLY --> ~IGL_STATIC_LIBRARY
Browse files Browse the repository at this point in the history
  • Loading branch information
alecjacobson committed Jun 25, 2014
1 parent 5e729fd commit 00fd1c9
Show file tree
Hide file tree
Showing 500 changed files with 510 additions and 509 deletions.
1 change: 1 addition & 0 deletions build/Makefile.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ GG=g++
#GG=g++-mp-4.3 15.5s
#GG=g++-mp-4.7 19.9s

CFLAGS += -DIGL_STATIC_LIBRARY
CFLAGS += -Wall
CFLAGS += -std=c++11

Expand Down
4 changes: 2 additions & 2 deletions examples/MatlabWorkspace/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
#include <igl/readDMAT.h>
#include <cstdio>

#ifndef IGL_HEADER_ONLY
#ifdef IGL_STATIC_LIBRARY
# define IGL_HEADER_ONLY
# define IGL_HEADER_ONLY_WAS_NOT_DEFINED
#endif
#include <igl/matlab/MatlabWorkspace.h>
#include <igl/on_boundary.h>
#ifdef IGL_HEADER_ONLY_WAS_NOT_DEFINED
#ifndef IGL_STATIC_LIBRARY_WAS_NOT_DEFINED
# undef IGL_HEADER_ONLY
#endif

Expand Down
2 changes: 1 addition & 1 deletion examples/affine/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include ../../build/Makefile.conf
igl_lib=../../
eigen=$(DEFAULT_PREFIX)/include/eigen3

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include -I$(eigen)
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/basic_topology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include ../../build/Makefile.conf
igl_lib=../../
eigen_lib=$(DEFAULT_PREFIX)/include/eigen3/

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include -I$(eigen_lib)
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/beach-balls/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ all: obj example

.PHONY: example

CFLAGS=-g -std=c++11
CFLAGS+=-g -std=c++11

LIBIGL=../../
LIBIGL_INC=-I$(LIBIGL)/include
Expand Down
2 changes: 1 addition & 1 deletion examples/cat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: example
igl_lib=../../
eigen=$(DEFAULT_PREFIX)/include/eigen3/

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include -I$(eigen)
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/dmat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: example
igl_lib=../../
eigen=$(DEFAULT_PREFIX)/include/eigen3

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include -I$(eigen)
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/eigen-gotchas/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: example
igl_lib=../../
eigen=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include $(eigen)
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/example_fun/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include ../../build/Makefile.conf

igl_lib=../../

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include

STATIC_LIB=-ligl -L../../lib
Expand Down
2 changes: 1 addition & 1 deletion examples/example_fun/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ int main(int argc, char * argv[])
example_fun(d);
int i = 4;
example_fun(i);
#ifdef IGL_HEADER_ONLY
#ifndef IGL_STATIC_LIBRARY
const char * s = "string";
example_fun(s);
#endif
Expand Down
2 changes: 1 addition & 1 deletion examples/file_contents_as_string/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ all: example

igl_lib=../../

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/get_seconds/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ all: example

igl_lib=../../

CFLAGS=-g -Wall
CFLAGS+=-g -Wall
inc=-I$(igl_lib)/include
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/glslversion/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ all: example

igl_lib=../../

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include
lib=$(OPENGL_LIB) $(GLUT_LIB) -L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/glut_speed_test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include ../../build/Makefile.conf

igl_lib=../../

CFLAGS=-g -Wall
CFLAGS+=-g -Wall
inc=-I$(igl_lib)/include
lib=$(OPENGL_LIB) $(GLUT_LIB) -L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/harwell_boeing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: example
igl_lib=../../
eigen=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include $(eigen)
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/is_dir/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ all: example

igl_lib=../../

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/marching_cubes/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include ../../build/Makefile.conf
igl_lib=../../
eigen=-I$(DEFAULT_PREFIX)/include/eigen3

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include $(eigen)
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/meshio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: example
igl_lib=../../
eigen=-I$(DEFAULT_PREFIX)/include/eigen3

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include $(eigen)
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/mode/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: example
igl_lib=../../
eigen=$(DEFAULT_PREFIX)/include/eigen3/

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include -I$(eigen)
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/patches/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ all: obj example

.PHONY: example

CFLAGS=-g -std=c++11
CFLAGS+=-g -std=c++11

LIBIGL=../../
LIBIGL_INC=-I$(LIBIGL)/include
Expand Down
2 changes: 1 addition & 1 deletion examples/path_tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ all: example

igl_lib=../../

CFLAGS=-g -Wall
CFLAGS+=-g -Wall
inc=-I$(igl_lib)/include
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/pathinfo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include ../../build/Makefile.conf

igl_lib=../../

CFLAGS=-g -Wall
CFLAGS+=-g -Wall
inc=-I$(igl_lib)/include
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/principal_curvature/curvature.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#define IGL_HEADER_ONLY
#undef IGL_STATIC_LIBRARY
#include <igl/principal_curvature.h>
#include <igl/read_triangle_mesh.h>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion examples/scene-rotation/trackball.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ axis_to_quat(float a[3], float phi, float q[4]);
void quat_to_axis(float q[4], float axis[3], float &phi);
void add_quats_no_renorm(float q1[4], float q2[4], float dest[4]);
void quat_rotate_point(float q[4], const float p1[3], float p2[3]);
////Olga////
////Olga////
4 changes: 2 additions & 2 deletions examples/slice/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ all: example
igl_lib=../../
eigen=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported

#CFLAGS=-g
CFLAGS=-Os -DNDEBUG
#CFLAGS+=-g
CFLAGS+=-Os -DNDEBUG
inc=-I$(igl_lib)/include $(eigen)
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/sort/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: example
igl_lib=../../
eigen=$(DEFAULT_PREFIX)/include/eigen3/

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include -I$(eigen)
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/sortrows/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: example
igl_lib=../../
eigen=$(DEFAULT_PREFIX)/include/eigen3/

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include -I$(eigen)
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/stdin_to_temp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ all: example

igl_lib=../../

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion examples/svd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ all: example

igl_lib=../../

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include
lib=-L$(igl_lib)/lib -ligl -framework Accelerate

Expand Down
2 changes: 1 addition & 1 deletion examples/trackball/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include ../../build/Makefile.conf

igl_lib=../../

CFLAGS=-g -Wall
CFLAGS+=-g -Wall
#deps=-MMD -MF depends.txt
EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
inc=-I$(igl_lib)/include $(EIGEN3_INC)
Expand Down
2 changes: 1 addition & 1 deletion examples/transpose_blocks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: example
igl_lib=../../
eigen=$(DEFAULT_PREFIX)/include/eigen3

CFLAGS=-g
CFLAGS+=-g
inc=-I$(igl_lib)/include -I$(eigen)
lib=-L$(igl_lib)/lib -ligl

Expand Down
2 changes: 1 addition & 1 deletion include/igl/EPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ template <> IGL_INLINE double igl::EPS_SQ()
return igl::DOUBLE_EPS_SQ;
}

#ifndef IGL_HEADER_ONLY
#ifdef IGL_STATIC_LIBRARY
// Explicit template specialization
#endif
2 changes: 1 addition & 1 deletion include/igl/EPS.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace igl
template <> IGL_INLINE double EPS_SQ<double>();
}

#ifdef IGL_HEADER_ONLY
#ifndef IGL_STATIC_LIBRARY
# include "EPS.cpp"
#endif

Expand Down
2 changes: 1 addition & 1 deletion include/igl/ReAntTweakBar.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ namespace igl
//TW_API int TW_CALL TwRemoveVar(TwBar *bar, const char *name);
//TW_API int TW_CALL TwRemoveAllVars(TwBar *bar);

#ifdef IGL_HEADER_ONLY
#ifndef IGL_STATIC_LIBRARY
# include "ReAntTweakBar.cpp"
#endif

Expand Down
2 changes: 1 addition & 1 deletion include/igl/active_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ IGL_INLINE igl::SolverStatus igl::active_set(
}


#ifndef IGL_HEADER_ONLY
#ifdef IGL_STATIC_LIBRARY
// Explicit template specialization
template igl::SolverStatus igl::active_set<double, Eigen::Matrix<double, -1, 1, 0, -1, 1>, Eigen::Matrix<int, -1, 1, 0, -1, 1>, Eigen::Matrix<double, -1, 1, 0, -1, 1>, double, Eigen::Matrix<double, -1, 1, 0, -1, 1>, double, Eigen::Matrix<double, -1, 1, 0, -1, 1>, Eigen::Matrix<double, -1, 1, 0, -1, 1>, Eigen::Matrix<double, -1, 1, 0, -1, 1>, Eigen::Matrix<double, -1, 1, 0, -1, 1> >(Eigen::SparseMatrix<double, 0, int> const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> > const&, Eigen::SparseMatrix<double, 0, int> const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> > const&, Eigen::SparseMatrix<double, 0, int> const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> > const&, igl::active_set_params const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> >&);
#endif
2 changes: 1 addition & 1 deletion include/igl/active_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ struct igl::active_set_params
{};
};

#ifdef IGL_HEADER_ONLY
#ifndef IGL_STATIC_LIBRARY
# include "active_set.cpp"
#endif

Expand Down
2 changes: 1 addition & 1 deletion include/igl/add_barycenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ IGL_INLINE void igl::add_barycenter(
}


#ifndef IGL_HEADER_ONLY
#ifdef IGL_STATIC_LIBRARY
// Explicit template specialization
#endif
2 changes: 1 addition & 1 deletion include/igl/add_barycenter.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace igl

}

#ifdef IGL_HEADER_ONLY
#ifndef IGL_STATIC_LIBRARY
# include "add_barycenter.cpp"
#endif

Expand Down
2 changes: 1 addition & 1 deletion include/igl/adjacency_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ IGL_INLINE void igl::adjacency_list(

}

#ifndef IGL_HEADER_ONLY
#ifdef IGL_STATIC_LIBRARY
// Explicit template specialization
// generated by autoexplicit.sh
template void igl::adjacency_list<Eigen::Matrix<int, -1, -1, 0, -1, -1>, int>(Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >&, bool);
Expand Down
2 changes: 1 addition & 1 deletion include/igl/adjacency_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace igl

}

#ifdef IGL_HEADER_ONLY
#ifndef IGL_STATIC_LIBRARY
# include "adjacency_list.cpp"
#endif

Expand Down
2 changes: 1 addition & 1 deletion include/igl/adjacency_matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ IGL_INLINE void igl::adjacency_matrix(
}
}

#ifndef IGL_HEADER_ONLY
#ifdef IGL_STATIC_LIBRARY
// Explicit template specialization
template void igl::adjacency_matrix<int>(Eigen::Matrix<int, -1, -1, 0, -1, -1> const&, Eigen::SparseMatrix<int, 0, int>&);
template void igl::adjacency_matrix<double>(Eigen::Matrix<int, -1, -1, 0, -1, -1> const&, Eigen::SparseMatrix<double, 0, int>&);
Expand Down
2 changes: 1 addition & 1 deletion include/igl/adjacency_matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace igl
Eigen::SparseMatrix<T>& A);
}

#ifdef IGL_HEADER_ONLY
#ifndef IGL_STATIC_LIBRARY
# include "adjacency_matrix.cpp"
#endif

Expand Down
2 changes: 1 addition & 1 deletion include/igl/all_edges.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace igl
Eigen::MatrixXi & E);
}

#ifdef IGL_HEADER_ONLY
#ifndef IGL_STATIC_LIBRARY
# include "all_edges.cpp"
#endif

Expand Down
2 changes: 1 addition & 1 deletion include/igl/all_pairs_distances.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ IGL_INLINE void igl::all_pairs_distances(
}
}

#ifndef IGL_HEADER_ONLY
#ifdef IGL_STATIC_LIBRARY
// Explicit template specialization
// generated by autoexplicit.sh
template void igl::all_pairs_distances<Eigen::Matrix<double, -1, -1, 0, -1, -1> >(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, bool, Eigen::Matrix<double, -1, -1, 0, -1, -1>&);
Expand Down
Loading

0 comments on commit 00fd1c9

Please sign in to comment.