Skip to content

Commit

Permalink
Merge pull request #9 from NREL/coretrace-vscode
Browse files Browse the repository at this point in the history
Coretrace files for VSCode
  • Loading branch information
mjwagner2 authored Mar 12, 2018
2 parents 5618e2c + 239b616 commit 197e093
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 37 deletions.
45 changes: 45 additions & 0 deletions coretrace/.vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"/usr/include/c++/5",
"/usr/include/x86_64-linux-gnu/c++/5",
"/usr/include/c++/5/backward",
"/usr/lib/gcc/x86_64-linux-gnu/5/include",
"/usr/local/include",
"/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed",
"/usr/include/x86_64-linux-gnu",
"/usr/include",
"${workspaceRoot}",
"~/local/wx-3.1.0/lib/wx/include/gtk2-unicode-static-3.1",
"~/local/wx-3.1.0/include/wx-3.1",
"${workspaceRoot}/../../lk/include",
"${workspaceRoot}/../../wex/include"

],
"defines": [],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"/usr/include/c++/5",
"/usr/include/x86_64-linux-gnu/c++/5",
"/usr/include/c++/5/backward",
"/usr/lib/gcc/x86_64-linux-gnu/5/include",
"/usr/local/include",
"/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed",
"/usr/include/x86_64-linux-gnu",
"/usr/include",
"${workspaceRoot}",
"~/local/wx-3.1.0/lib/wx/include/gtk2-unicode-static-3.1",
"~/local/wx-3.1.0/include/wx-3.1",
"${workspaceRoot}/../../lk/include",
"${workspaceRoot}/../../wex/include"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
],
"version": 3
}
36 changes: 36 additions & 0 deletions coretrace/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": "0.1.0",
"command": "make",
"isShellCommand": true,
"options": {
"cwd": "${workspaceRoot}/build_linux",
},
"tasks": [
{
"taskName": "Makefile",

// Make this the default build command.
"isBuildCommand": true,

// Show the output window only if unrecognized errors occur.
"showOutput": "always",

// No args
"args": ["all"],

// Use the standard less compilation problem matcher.
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["relative", "${workspaceRoot}"],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}
]
}
40 changes: 3 additions & 37 deletions coretrace/build_linux/Makefile
Original file line number Diff line number Diff line change
@@ -1,39 +1,5 @@
VPATH = ..
CC = gcc
CXX = g++
CFLAGS = -fPIC -Wall -g -O3 -I../
CXXFLAGS = -std=c++11 $(CFLAGS)

OBJECTS = \
treemesh.o \
apertureplane.o \
determineelementintersectionnew.o \
dumpsys.o \
errors.o \
generateray.o \
input.o \
interaction.o \
intersect.o \
mathproc.o \
newzstartforcubicsplinesurf.o \
quadricsurfaceclosedform.o \
root432.o \
spencerandmurtysurfaceclosedform.o \
stapi.o \
suntoprimarystage.o \
surface.o \
surfacenormalerrors.o \
surfacezatxypair.o \
torusclosedform.o \
raytrace.o \
types.o \
vshot.o


TARGET=coretrace.a

$(TARGET):$(OBJECTS)
ar rs $(TARGET) $(OBJECTS)
all:
make -f Makefile-coretrace -j2

clean:
rm -rf $(TARGET) $(OBJECTS)
make -f Makefile-coretrace clean
39 changes: 39 additions & 0 deletions coretrace/build_linux/Makefile-coretrace
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
VPATH = ..
CC = gcc
CXX = g++
CFLAGS = -fPIC -Wall -g -O3 -I../
CXXFLAGS = -std=c++11 $(CFLAGS)

OBJECTS = \
treemesh.o \
apertureplane.o \
determineelementintersectionnew.o \
dumpsys.o \
errors.o \
generateray.o \
input.o \
interaction.o \
intersect.o \
mathproc.o \
newzstartforcubicsplinesurf.o \
quadricsurfaceclosedform.o \
root432.o \
spencerandmurtysurfaceclosedform.o \
stapi.o \
suntoprimarystage.o \
surface.o \
surfacenormalerrors.o \
surfacezatxypair.o \
torusclosedform.o \
raytrace.o \
types.o \
vshot.o


TARGET=coretrace.a

$(TARGET):$(OBJECTS)
ar rs $(TARGET) $(OBJECTS)

clean:
rm -rf $(TARGET) $(OBJECTS)

0 comments on commit 197e093

Please sign in to comment.