VirtualBox

Changeset 17725 in vbox


Ignore:
Timestamp:
Mar 12, 2009 10:05:15 AM (16 years ago)
Author:
vboxsync
Message:

Cbinding: Updated the sample program and placed
it in appropriate sample directory. Placed the
glue code in bin/sdk/bindings/xpcom/cbinding/
directory. Updated the sample make file to handle
tstXPCOMCGlue.c program.

Location:
trunk/src/VBox/Main/cbinding
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/cbinding/Makefile.kmk

    r17706 r17725  
    3434XpComCSamples_SOURCES = \
    3535        tstLinuxC.c \
     36        tstXPCOMCGlue.c \
    3637        makefile.tstLinuxC=>Makefile
     38
     39INSTALLS += XpComCGlue
     40XpComCGlue_MODE = a+r,u+rw
     41XpComCGlue_INST = \
     42        $(INST_SDK)bindings/xpcom/cbinding/
     43XpComCGlue_SOURCES = \
     44        VBoxXPCOMCGlue.c \
     45        VBoxXPCOMCGlue.h
    3746
    3847INSTALLS += XpComCHeaders
     
    8291  tstXPCOMC_TEMPLATE = VBOXR3EXE
    8392  tstXPCOMC_INCS = \
    84         $(VBOX_PATH_SDK)/bindings/xpcom/include \
    85         $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub
     93        $(VBOX_PATH_SDK)/bindings/xpcom/include
    8694  tstXPCOMC_INTERMEDIATES = \
    8795        $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_CXPCOM.h
     
    97105  tstXPCOMCGlue_TEMPLATE = VBOXR3EXE
    98106  tstXPCOMCGlue_INCS = \
    99         $(VBOX_PATH_SDK)/bindings/xpcom/include \
    100         $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub
     107        $(VBOX_PATH_SDK)/bindings/xpcom/include
    101108  tstXPCOMCGlue_INTERMEDIATES = \
    102109        $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_CXPCOM.h
  • trunk/src/VBox/Main/cbinding/makefile.tstLinuxC

    r17706 r17725  
    2121
    2222PATH_BIN      = /opt/VirtualBox
    23 INCS_XPCOM = -I../../include
     23INCS_XPCOM    = -I../../include
     24GLUE_DIR      = ..
     25GLUE_INC      = -I..
    2426
    2527CC            = gcc
     
    2729
    2830.PHONY: all
    29 all: tstLinuxC
     31all: tstLinuxC tstXPCOMCGlue
    3032
    3133.PHONY: clean
    3234clean:
    33         rm -f tstLinuxC.o tstLinuxC
     35        rm -f tstLinuxC.o tstLinuxC tstXPCOMCGlue.o tstXPCOMCGlue VBoxXPCOMCGlue.o
    3436
    3537tstLinuxC: tstLinuxC.o
     
    3840tstLinuxC.o: tstLinuxC.c
    3941        $(CC) $(CFLAGS) $(INCS_XPCOM) -o $@ -c $<
     42
     43tstXPCOMCGlue: tstXPCOMCGlue.o VBoxXPCOMCGlue.o
     44        $(CC) -o $@ $^ -ldl
     45
     46tstXPCOMCGlue.o: tstXPCOMCGlue.c
     47        $(CC) $(CFLAGS) $(INCS_XPCOM) $(GLUE_INC) -o $@ -c $<
     48
     49VBoxXPCOMCGlue.o: $(GLUE_DIR)/VBoxXPCOMCGlue.c
     50        $(CC) $(CFLAGS) $(INCS_XPCOM) $(GLUE_INC) -o $@ -c $<
  • trunk/src/VBox/Main/cbinding/tstXPCOMCGlue.c

    r16838 r17725  
    2929#include <string.h>
    3030#include <stdlib.h>
    31 #include <sys/stat.h>
    3231
    3332static char *nsIDToString(nsID *guid);
     
    309308    PRUnichar  *versionUtf16     = NULL;
    310309    PRUnichar  *homefolderUtf16  = NULL;
    311     struct stat stIgnored;
    312310    nsresult    rc;     /* Result code of various function (method) calls. */
    313311
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette