PathOption('PREFIX', 'Set the install "prefix"', '/usr/local'),
BoolOption('SURFACES', 'Build support for control surfaces', 1),
BoolOption('WIIMOTE', 'Build the wiimote control surface', 0),
- ('LIBDIR', 'Set librarydir (typically lib or lib64)', 'lib'),
+ ('DIST_LIBDIR', 'Explicitly set library dir. If not set, Fedora-style defaults are used (typically lib or lib64)', ''),
BoolOption('SYSLIBS', 'USE AT YOUR OWN RISK: CANCELS ALL SUPPORT FROM ARDOUR AUTHORS: Use existing system versions of various libraries instead of internal ones', 0),
BoolOption('UNIVERSAL', 'Compile as universal binary. Requires that external libraries are already universal.', 0),
BoolOption('VERSIONED', 'Add revision information to ardour/gtk executable name inside the build directory', 0),
# handle x86/x86_64 libdir properly
-if env['DIST_TARGET'] == 'x86_64':
- env['LIBDIR']='lib64'
+if env['DIST_LIBDIR'] == '':
+ if env['DIST_TARGET'] == 'x86_64':
+ env['LIBDIR']='lib64'
+ else:
+ env['LIBDIR']='lib'
else:
- env['LIBDIR']='lib'
+ env['LIBDIR'] = env['DIST_LIBDIR']
#
# no VST on x86_64
int32_t children = 0, numtracks = 0;
// XXX hard coding track limit, oh my, so very very bad
- bitset <1024> tracks (0x00);
+ bitset <1024> tracks (0x00ul);
/* get a bitmask representing the visible tracks */
for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) {
bool TranzportControlProtocol::lcd_damage (int row, int col, int length)
{
- std::bitset<ROWS*COLUMNS> mask1(0);
+ std::bitset<ROWS*COLUMNS> mask1(0ul);
// there's an intrinsic to do this fast, darn it, or I'm just sleepy
for (int i = 0; i < length; i++) { mask1[i] = 1; }
std::bitset<ROWS*COLUMNS> mask(mask1 << (row*COLUMNS+col));
bool TranzportControlProtocol::lcd_isdamaged (int row, int col, int length)
{
// there's an intrinsic to do this fast, darn it
- std::bitset<ROWS*COLUMNS> mask1(0);
+ std::bitset<ROWS*COLUMNS> mask1(0ul);
for (int i = 0; i < length; i++) { mask1[i] = 1; }
std::bitset<ROWS*COLUMNS> mask(mask1 << (row*COLUMNS+col));
mask &= screen_invalid;