Raychan1 / symbiosis-au-vst

Automatically exported from code.google.com/p/symbiosis-au-vst
0 stars 0 forks source link

Should auto-generate Symbiosis obj-c classes prefix #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
To circumvent the single name space problem, the code is designed so that all 
Symbiosis plug-ins will use the Symbiosis classes of the first loaded plug-in 
(at least if they have the same class prefixes which is manually maintained at 
the moment). This is important to be able to use the pre-compiled wrapper 
binaries for several different plug-ins. But it can also present a major 
problem if you make any changes at all to the Symbiosis code without changing 
the class prefix. (Actually, it could in theory break things if you just use 
different compiler settings for different plug-ins.)

The best solution is probably to auto-generate the class prefix from 
compilation date and time or something. If it is possible at all.

Original issue reported on code.google.com by malstro...@gmail.com on 11 Jul 2011 at 10:55

GoogleCodeExporter commented 8 years ago
I could not find a cleaner solution than to require a .h file that defines a 
unique class prefix. I have suggested a "Run Script Build Phase" that will 
create this file and define the prefix automatically based on the system clock. 
This should be unique enough in practice.

The script looks like this:

date "+#define SY_CLASS_PREFIX netnuedgesymbiosis%Y%m%d%H%M%S" 
>${SOURCE_ROOT}/SymbiosisClassPrefix.h

This change was made for 1.3b.

Original comment by malstro...@gmail.com on 30 Aug 2011 at 10:33