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
Revise build system and CI #139
Merged
Merged
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
034bb2f
Revise CMakeLists.txt in all folders
computerquip-streamlabs 2e1b7cf
Merge branch 'staging' of github.com:stream-labs/obs-studio-node into…
computerquip-streamlabs 345ea4f
Shutoff broken lib-datalane tests by default
computerquip-streamlabs 5f9aef8
Add config manager files manually due to merge conflicts
computerquip-streamlabs 64a2c46
Use underscores instead of hyphens for node-module
computerquip-streamlabs 54d15bf
Remove rdp abilities by default
computerquip-streamlabs d8a9600
Remove whitespace from appveyor script
computerquip-streamlabs df1d67f
Place longer CI commands into separate script
computerquip-streamlabs a978009
Organize runtime versions to be more readable and accurate
computerquip-streamlabs a51c570
Allow a config variable for libobs archive URL
computerquip-streamlabs abcf731
Use S3 for deployment
computerquip-streamlabs da9f020
Roll electron 3.x artifact
computerquip-streamlabs a0dbd86
Use proper versioning and naming in appveyor artifact
computerquip-streamlabs ce86a7a
Copy signed binaries only on release
computerquip-streamlabs 8479459
Add forgotten script to copy signed binaries
computerquip-streamlabs b826c75
Use cloudflare links for libobs default URL
computerquip-streamlabs c8de813
Qualify version number to place in artifact
computerquip-streamlabs 1fb7b6d
Use new cloudflare bucket for S3
computerquip-streamlabs fa36b01
Fix incorrect environment variable when releasing
computerquip-streamlabs File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,94 +1,50 @@ | ||
CMAKE_MINIMUM_REQUIRED(VERSION 3.1) | ||
cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR) | ||
|
||
# Automatic Versioning | ||
SET(VERSION_FULL 0.3.21) | ||
SET(VERSION_BUILD 0) | ||
IF(EXISTS "${CMAKE_SOURCE_DIR}/.git") | ||
SET(GIT_RESULT "") | ||
SET(GIT_OUTPUT "") | ||
EXECUTE_PROCESS( | ||
COMMAND git rev-list --count --topo-order v${VERSION_FULL}..HEAD | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} | ||
RESULT_VARIABLE GIT_RESULT | ||
OUTPUT_VARIABLE GIT_OUTPUT | ||
OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_STRIP_TRAILING_WHITESPACE ERROR_QUIET | ||
) | ||
IF(GIT_RESULT EQUAL 0) | ||
SET(VERSION_BUILD "${GIT_OUTPUT}") | ||
ENDIF() | ||
ENDIF() | ||
set(VERSION_FULL 0.3.21) | ||
set(VERSION_BUILD 0) | ||
|
||
PROJECT( | ||
obs-studio-node | ||
VERSION ${VERSION_FULL}.${VERSION_BUILD} | ||
) | ||
find_package(Git) | ||
|
||
################################################################################ | ||
# CMake | ||
################################################################################ | ||
MESSAGE(STATUS "OBS Studio for Node.JS Version ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}.${PROJECT_VERSION_TWEAK}") | ||
if(EXISTS "${CMAKE_SOURCE_DIR}/.git" AND Git_FOUND) | ||
execute_process( | ||
COMMAND "${GIT_EXECUTABLE}" rev-list --count --topo-order v${VERSION_FULL}..HEAD | ||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} | ||
OUTPUT_STRIP_TRAILING_WHITESPACE | ||
ERROR_STRIP_TRAILING_WHITESPACE | ||
ERROR_QUIET | ||
) | ||
endif() | ||
|
||
# Set Module Path | ||
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake") | ||
project(obs-studio-node VERSION ${VERSION_FULL}.${VERSION_BUILD}) | ||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake") | ||
|
||
# CppCheck | ||
include(cppcheck) | ||
|
||
################################################################################ | ||
# Compiler | ||
################################################################################ | ||
cppcheck(EXCLUDE "${PROJECT_SOURCE_DIR}/node_modules") | ||
|
||
# MSVC Specific | ||
IF(WIN32) | ||
if(WIN32) | ||
# Resource VersionInfo | ||
SET( | ||
PROJECT_PRODUCT_NAME | ||
"OBS Studio for Node.JS" | ||
) | ||
SET( | ||
PROJECT_COMPANY_NAME | ||
"Streamlabs" | ||
) | ||
SET( | ||
PROJECT_COPYRIGHT | ||
"Streamlabs © 2017 - 2018" | ||
) | ||
SET( | ||
PROJECT_LEGAL_TRADEMARKS_1 | ||
"" | ||
) | ||
SET( | ||
PROJECT_LEGAL_TRADEMARKS_2 | ||
"" | ||
) | ||
|
||
set(PROJECT_PRODUCT_NAME "OBS Studio for Node.JS") | ||
set(PROJECT_COMPANY_NAME "Streamlabs") | ||
set(PROJECT_COPYRIGHT "Streamlabs © 2017 - 2018") | ||
set(PROJECT_LEGAL_TRADEMARKS_1 "") | ||
set(PROJECT_LEGAL_TRADEMARKS_2 "") | ||
|
||
configure_file( | ||
${PROJECT_SOURCE_DIR}/cmake/version.rc.in | ||
${PROJECT_BINARY_DIR}/version.rc | ||
@ONLY | ||
) | ||
|
||
# ToDo: Figure out a better way to tell the test setup where to find our binaries. | ||
configure_file( | ||
${PROJECT_SOURCE_DIR}/cmake/obs.js.in | ||
${PROJECT_SOURCE_DIR}/tests/helpers/obs.js | ||
@ONLY | ||
) | ||
ENDIF() | ||
|
||
############################# | ||
# Configuration | ||
############################# | ||
|
||
# Installation | ||
SET(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/distribute" CACHE PATH "Path to install files to") | ||
|
||
############################# | ||
# Projects | ||
############################# | ||
|
||
cppcheck(EXCLUDE "${PROJECT_SOURCE_DIR}/node_modules") | ||
endif() | ||
|
||
ADD_SUBDIRECTORY(lib-streamlabs-ipc) | ||
ADD_SUBDIRECTORY(obs-studio-client) | ||
ADD_SUBDIRECTORY(obs-studio-server) | ||
add_subdirectory(lib-streamlabs-ipc) | ||
add_subdirectory(obs-studio-client) | ||
add_subdirectory(obs-studio-server) |
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,5 +1,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
|
||
const obs = require("@CMAKE_INSTALL_PREFIX@") | ||
exports.obs = obs; |
This file contains 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
This file contains 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
This file contains 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
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.
This is from a previous PR that didn't compile typescript to definitions.