Skip to content

Commit

Permalink
windows cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jwinarske committed Jul 14, 2020
1 parent 6ef46eb commit e18e389
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
11 changes: 8 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,22 @@ set(LDFLAGS
${_ALLTARGETS_LIBRARIES}
)

if(NOT HAVE_GETOPT_C)
set(EXT_DEPS gperf_ext)
endif()
set(EXT_DEPS ${EXT_DEPS} portaudio_ext)

add_executable(run_assistant_text ${GOOGLEAPIS_CCS} ${CORE_SRCS} ${ASSISTANT_TEXT_SRCS})
target_link_libraries(run_assistant_text ${LDFLAGS})
add_dependencies(run_assistant_text portaudio_ext)
add_dependencies(run_assistant_text ${EXT_DEPS})

add_executable(run_assistant_file ${GOOGLEAPIS_CCS} ${CORE_SRCS} ${AUDIO_INPUT_FILE_SRCS} ${ASSISTANT_FILE_SRCS})
target_link_libraries(run_assistant_file ${LDFLAGS})
add_dependencies(run_assistant_file portaudio_ext)
add_dependencies(run_assistant_file ${EXT_DEPS})

add_executable(run_assistant_audio ${GOOGLEAPIS_CCS} ${CORE_SRCS} ${AUDIO_SRCS} ${ASSISTANT_AUDIO_SRCS})
target_link_libraries(run_assistant_audio ${LDFLAGS} ${_PORTAUDIO_LIB})
add_dependencies(run_assistant_audio portaudio_ext)
add_dependencies(run_assistant_audio ${EXT_DEPS})

if(APPLE)
target_link_libraries(run_assistant_text "-framework CoreFoundation")
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ build_script:
-DBUILD_NUMBER=%APPVEYOR_BUILD_NUMBER% %CMAKE_ARGS%
..

- set CL=/MP
- cmake --build . --config %CONFIGURATION% --target all

after_build:
Expand Down
2 changes: 1 addition & 1 deletion cmake/build_dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,6 @@ link_directories(
${_SSL_LIBRARIES_DIRS}
)

set(Protobuf_PROTOC_EXECUTABLE ${CMAKE_STAGING_PREFIX}/bin/protoc)
set(Protobuf_PROTOC_EXECUTABLE ${CMAKE_STAGING_PREFIX}/bin/protoc${CMAKE_EXECUTABLE_SUFFIX})

set(PROTO_BASE_PATH ${CMAKE_CURRENT_BINARY_DIR}/grpc_ext-prefix/src/grpc_ext/third_party/googleapis)
2 changes: 1 addition & 1 deletion cmake/googleapis.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set grpc plugin
if(NOT _gRPC_CPP_PLUGIN)
set(_gRPC_CPP_PLUGIN ${CMAKE_STAGING_PREFIX}/bin/grpc_cpp_plugin)
set(_gRPC_CPP_PLUGIN ${CMAKE_STAGING_PREFIX}/bin/grpc_cpp_plugin${CMAKE_EXECUTABLE_SUFFIX})
endif()

if(NOT _gRPC_PROTO_GENS_DIR)
Expand Down

0 comments on commit e18e389

Please sign in to comment.