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

3.7win without IPC fix #1852

Merged
merged 35 commits into from
Feb 21, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
8e30bd6
scdoc: typo in HID_permissions.schelp
redFrik Dec 6, 2015
bd579ca
scdoc: typo in LID_permissions.schelp
redFrik Dec 6, 2015
4b5fc03
scdoc: typo in Working_with_HID.schelp
redFrik Dec 6, 2015
7c086c6
Merge pull request #1756 from redFrik/patch-11
telephon Dec 6, 2015
f1adfcd
Merge pull request #1755 from redFrik/patch-10
telephon Dec 6, 2015
a630e05
build: fix PanUGens to build when NOVA_SIMD=OFF
danstowell Dec 6, 2015
130095d
Merge pull request #1754 from redFrik/patch-9
danstowell Dec 6, 2015
c0a550d
scdoc/sclang lexers: use intptr_t for compatibility with LLP64 archit…
timblechmann Oct 20, 2015
f5b7843
ide: fix issue with large documents
miguel-negrao Feb 2, 2016
3f2da04
Merge commit 'c0a550d247ef98088dba3ca12c0e49587c2b6748' into 3.7win
bagong Feb 3, 2016
77bb46f
cmake additions for Windows build
bagong Feb 3, 2016
b8febf5
Additional Windows-specific elements in Lucas C. winport
bagong Feb 3, 2016
bd89b5c
Mainly cmake related changes to allow for VS Windows build
bagong Feb 4, 2016
0ef2726
Two typos and two workarounds for compile VS related compile problems
bagong Feb 4, 2016
2a98c12
Another small correction
bagong Feb 4, 2016
04b1660
Readme with build instructions. Quite wordy, sorrz....
bagong Feb 4, 2016
69d42d6
Use less accurate system time for Win XP and Win7 compatibility
bagong Feb 7, 2016
c9f6db5
First batch of changes addressing Tim's review
bagong Feb 9, 2016
468daf9
Add submodule portaudio
bagong Feb 14, 2016
7cf7be4
Integrate embedded portaudio into Windows build system
bagong Feb 14, 2016
b62004b
ide: fix memory leak
miguel-negrao Feb 7, 2016
f620dae
Make dll-search path a bit nicer
bagong Feb 14, 2016
d27796a
Rewritten README_WINDOWS
bagong Feb 16, 2016
636d12b
Msys2 finds portaudio2 - behaves like Apple
bagong Feb 16, 2016
acfda0d
Correct omission in last commit
bagong Feb 16, 2016
0bf8729
Deploy Qt platform plugin with with generator expression
bagong Feb 16, 2016
0418264
Use Qt syntax for ifdef/if defined and include QtGlobal
bagong Feb 16, 2016
39a766a
Restrict eat-my grandma workaround to Visual Studio compiles
bagong Feb 16, 2016
a78c6f0
Another little omission
bagong Feb 16, 2016
92cc290
Use string delimiters consistently when using variables in paths
bagong Feb 16, 2016
17ee397
Correct wrong elseif
bagong Feb 17, 2016
ad8d9dc
More white-space and delimiters
bagong Feb 17, 2016
9ae01dd
Unify with comparisonBranch
bagong Feb 18, 2016
fb4e463
Switch portaudio linking to shared by default
bagong Feb 20, 2016
552e8bd
Add change to portaudio repo
bagong Feb 20, 2016
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
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "external_libraries/hidapi"]
path = external_libraries/hidapi
url = git://github.com/sensestage/hidapi.git
[submodule "external_libraries/portaudio"]
path = external_libraries/portaudio
url = https://github.com/bagong/portaudio
36 changes: 33 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
message(WARNING "WARNING: IN-PLACE BUILDS ARE NOT RECOMMENDED - PLEASE USE A BUILD DIRECTORY")
endif()

# allows cmake-find modules and Windows installer to identify the right architecture
if(WIN32)
if(CMAKE_CL_64 OR "$ENV{MSYSTEM}" MATCHES "64" OR CMAKE_C_COMPILER MATCHES "64")
SET(CMAKE_LIBRARY_ARCHITECTURE "x64" CACHE STRING "Architecture of target system (for 64bit)")
else()
SET(CMAKE_LIBRARY_ARCHITECTURE "x86" CACHE STRING "Architecture of target system (for 32bit)")
endif()

if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
SET(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/Install" CACHE STRING "Cmake install path" FORCE)
endif()
endif(WIN32)

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules
${CMAKE_MODULE_PATH})
Expand Down Expand Up @@ -123,7 +135,7 @@ if (SC_QT)
message( STATUS "Compiling with Qt GUI" )
else()
if (SC_IDE)
message( STATUS "Not compiling SC IDE, because it requires Qt but SC_QT is False" )
message( STATUS "Not compiling SC IDE, because it requires Qt but SC_QT is False" )
set(SC_IDE False)
endif()
endif (SC_QT)
Expand All @@ -142,7 +154,11 @@ option(SC_MEMORY_DEBUGGING "Build sclang&scsynth for memory debugging (disable m
option(GC_SANITYCHECK "Enable sanity checks in the sclang garbage collector.")

option(NO_LIBSNDFILE "Disable soundfile functionality. (Not recommended.)" OFF)
option(NO_AVAHI "Disable Avahi support. (Not recommended.)" OFF)
if(WIN32)
option(NO_AVAHI "Disable Avahi support. (Not recommended.)" ON)
else(WIN32)
option(NO_AVAHI "Disable Avahi support. (Not recommended.)" OFF)
endif(WIN32)
option(NO_GPL3 "Disable GPL3 code, for pure-GPL2 situations. (Not recommended.)" OFF)

option(SCLANG_SERVER "Build with internal server." ON)
Expand Down Expand Up @@ -176,6 +192,19 @@ if (NOT WIN32)
include_directories(${PTHREADS_INCLUDE_DIR})
endif()

if(WIN32)
find_package(Portaudio)
set(PA_LIBRARY_TYPE "STATIC")
if(MSVC AND NOT PORTAUDIO_FOUND_RELEASE_DEBUG)
set(SC_BUILD_PA ON CACHE BOOL "Building portaudio with SC" FORCE)
set(PORTAUDIO_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/external_libraries/portaudio/include )
elseif(MINGW AND NOT PORTAUDIO_FOUND)
set(SC_BUILD_PA ON CACHE BOOL "Building portaudio with SC" FORCE)
set(PORTAUDIO_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/external_libraries/portaudio/include )
endif()
endif(WIN32)


if(MSVC OR MINGW)
set(MATH_LIBRARY "")
else()
Expand Down Expand Up @@ -244,9 +273,10 @@ if (CMAKE_COMPILER_IS_INTEL AND NOT WIN32)
add_definitions(-diag-disable 279) # controlling expression is constant
endif()

if(${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC")
if(CMAKE_CXX_COMPILER_ID STREQUAL MSVC)
foreach(flag CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
set(${flag} "${${flag}} /wd4018") # signed/unsigned mismatch
set(${flag} "${${flag}} /wd4065") # switch statement contains 'default' but no 'case' labels
set(${flag} "${${flag}} /wd4102") # unreferenced label
set(${flag} "${${flag}} /wd4267") # conversion from 'size_t' to 'int', possible loss of data
set(${flag} "${${flag}} /wd4244") # conversion from '__int64' to 'int', possible loss of data
Expand Down
4 changes: 2 additions & 2 deletions HelpSource/Guides/HID_permissions.schelp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title:: HID permissions
summary:: Details how to configure your computer to set the permissions to access HID's
categories:: External control>HID
categories:: External Control>HID
related:: Guides/Working_with_HID, Classes/HID

section:: On Linux
Expand All @@ -27,4 +27,4 @@ Check the permissions with:

code::
"ls /dev/hidraw* -lah".unixCmd;
::
::
4 changes: 2 additions & 2 deletions HelpSource/Guides/LID_permissions.schelp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title:: LID permissions
summary:: Details how to configure your computer to set the permissions to access LID's
categories:: External control>HID
categories:: External Control>HID
related:: Guides/HID_permissions, Classes/LID

section:: On Linux
Expand All @@ -27,4 +27,4 @@ Check the permissions with:

code::
"ls /dev/input/event* -lah".unixCmd;
::
::
4 changes: 2 additions & 2 deletions HelpSource/Guides/Working_with_HID.schelp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title:: Working with HID
summary:: A guide to using HID devices for control input
categories:: External control>HID
categories:: External Control>HID
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could these typos be moved into another PR? it is not exactly related ....

related:: Classes/HID, Classes/HIDFunc

section:: Introduction
Expand Down Expand Up @@ -218,4 +218,4 @@ Tdef( 'tryOpenHID' , {
} );
);
Tdef( 'tryOpenHID' ).play;
::
::
9 changes: 8 additions & 1 deletion QtCollider/primitives/prim_misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,14 @@ QC_LANG_PRIMITIVE( Qt_SetGlobalPalette, 1, PyrSlot *r, PyrSlot *a, VMGlobals *g
{
if( !QcApplication::compareThread() ) return QtCollider::wrongThreadError();

QPalette p = QtCollider::get( a );
// The line below is a workaround. The non-win term causes Error C2440 in VS
// https://msdn.microsoft.com/en-us/library/sy5tsf8z.aspx
#if defined(_MSC_VER)
QPalette p = (QPalette&&) QtCollider::get(a);
#else
QPalette p = QtCollider::get( a );
#endif

QApplication::setPalette( p );

return errNone;
Expand Down
9 changes: 5 additions & 4 deletions QtCollider/style/ProxyStyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include "../QcApplication.h"

#include <QtGlobal>
#include <QWebView>
#include <QStyleOptionSlider>
#include <QPainter>
Expand All @@ -13,13 +14,13 @@
using namespace QtCollider;

static bool AlwaysShowScrollbars() {
#ifdef Q_OS_MAC
#if defined(Q_OS_MAC)
return QtCollider::Mac::AlwaysShowScrollbars();

#elif Q_OS_X11
#elif defined(Q_OS_X11)
return !QcApplication::SystemHasMouseWheel();

#elif Q_OS_WIN
#elif defined(Q_OS_WIN)
return !QcApplication::SystemHasMouseWheel();

#else
Expand All @@ -43,7 +44,7 @@ void ProxyStyle::drawComplexControl ( ComplexControl ctrl, const QStyleOptionCom
QProxyStyle::drawComplexControl( ctrl, &opt2, p, w );
return;
}

if (ctrl == QStyle::CC_ScrollBar && AlwaysShowScrollbars()) {
const QStyleOptionSlider *optSlider = static_cast<const QStyleOptionSlider*>(opt);
QStyleOptionSlider opt2( *optSlider );
Expand Down
Loading